From f5e5a3eb3c6f39e898f1f87ae40b21a05aacb0e8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 28 Apr 2014 19:17:36 -0400 Subject: these aren't used anymore --- src/window-xlib.c | 38 -------------------------------------- src/window-xlib.h | 4 ---- 2 files changed, 42 deletions(-) diff --git a/src/window-xlib.c b/src/window-xlib.c index 3864a4c..a531021 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -18,8 +18,6 @@ static char *atom_names[RUNES_NUM_ATOMS] = { "UTF8_STRING", "WM_PROTOCOLS", "RUNES_FLUSH", - "RUNES_VISUAL_BELL", - "RUNES_AUDIBLE_BELL", "RUNES_SELECTION" }; @@ -247,36 +245,6 @@ void runes_window_backend_request_flush(RunesTerm *t) XUnlockDisplay(t->w.dpy); } -void runes_window_backend_request_visual_bell(RunesTerm *t) -{ - XEvent e; - - e.xclient.type = ClientMessage; - e.xclient.window = t->w.w; - e.xclient.format = 32; - e.xclient.data.l[0] = t->w.atoms[RUNES_ATOM_RUNES_VISUAL_BELL]; - - XSendEvent(t->w.dpy, t->w.w, False, NoEventMask, &e); - XLockDisplay(t->w.dpy); - XFlush(t->w.dpy); - XUnlockDisplay(t->w.dpy); -} - -void runes_window_backend_request_audible_bell(RunesTerm *t) -{ - XEvent e; - - e.xclient.type = ClientMessage; - e.xclient.window = t->w.w; - e.xclient.format = 32; - e.xclient.data.l[0] = t->w.atoms[RUNES_ATOM_RUNES_AUDIBLE_BELL]; - - XSendEvent(t->w.dpy, t->w.w, False, NoEventMask, &e); - XLockDisplay(t->w.dpy); - XFlush(t->w.dpy); - XUnlockDisplay(t->w.dpy); -} - void runes_window_backend_request_close(RunesTerm *t) { XEvent e; @@ -411,12 +379,6 @@ static void runes_window_backend_process_event(uv_work_t *req, int status) else if (a == w->atoms[RUNES_ATOM_RUNES_FLUSH]) { runes_window_backend_flush(t); } - else if (a == w->atoms[RUNES_ATOM_RUNES_VISUAL_BELL]) { - runes_window_backend_visual_bell(t); - } - else if (a == w->atoms[RUNES_ATOM_RUNES_AUDIBLE_BELL]) { - runes_window_backend_audible_bell(t); - } break; } default: diff --git a/src/window-xlib.h b/src/window-xlib.h index 4844b15..f595982 100644 --- a/src/window-xlib.h +++ b/src/window-xlib.h @@ -13,8 +13,6 @@ enum runes_atoms { RUNES_ATOM_UTF8_STRING, RUNES_ATOM_WM_PROTOCOLS, RUNES_ATOM_RUNES_FLUSH, - RUNES_ATOM_RUNES_VISUAL_BELL, - RUNES_ATOM_RUNES_AUDIBLE_BELL, RUNES_ATOM_RUNES_SELECTION, RUNES_NUM_ATOMS }; @@ -36,8 +34,6 @@ typedef struct { void runes_window_backend_create_window(RunesTerm *t, int argc, char *argv[]); void runes_window_backend_start_loop(RunesTerm *t); void runes_window_backend_request_flush(RunesTerm *t); -void runes_window_backend_request_visual_bell(RunesTerm *t); -void runes_window_backend_request_audible_bell(RunesTerm *t); void runes_window_backend_request_close(RunesTerm *t); unsigned long runes_window_backend_get_window_id(RunesTerm *t); void runes_window_backend_get_size(RunesTerm *t, int *xpixel, int *ypixel); -- cgit v1.2.3-54-g00ecf