summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/main.c b/src/main.c
index 4127abd..7a00205 100644
--- a/src/main.c
+++ b/src/main.c
@@ -73,47 +73,6 @@ sighandler ()
}
void
-send_restart ()
-{
- XEvent ev;
- int status;
-
- ev.xclient.type = ClientMessage;
- ev.xclient.window = DefaultRootWindow (dpy);
- ev.xclient.message_type = rp_restart;
- ev.xclient.format = 32;
- ev.xclient.data.l[0] = rp_restart;
- ev.xclient.data.l[1] = CurrentTime;
-
- status = XSendEvent (dpy, DefaultRootWindow (dpy), False, SubstructureRedirectMask, &ev);
- if (status == 0)
- {
- PRINT_ERROR ("failed to send restart event\n");
- }
-}
-
-void
-send_kill ()
-{
- XEvent ev;
- int status;
-
- ev.xclient.type = ClientMessage;
- ev.xclient.window = DefaultRootWindow (dpy);
- ev.xclient.message_type = rp_kill;
- ev.xclient.format = 32;
- ev.xclient.data.l[0] = rp_kill;
- ev.xclient.data.l[1] = CurrentTime;
-
- status = XSendEvent (dpy, DefaultRootWindow (dpy), False, SubstructureRedirectMask, &ev);
- if (status == 0)
- {
- PRINT_ERROR ("failed to send kill event\n");
- }
-}
-
-
-void
hup_handler ()
{
/* Doesn't function correctly. The event IS placed on the queue but