aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-28 19:17:36 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-28 19:17:36 -0400
commitf5e5a3eb3c6f39e898f1f87ae40b21a05aacb0e8 (patch)
treeeed0c7317db1158941800f72896eba907f609e84
parentd09c2b8cab6055f4d0c03e1a37aad7800fc1f705 (diff)
downloadrunes-f5e5a3eb3c6f39e898f1f87ae40b21a05aacb0e8.tar.gz
runes-f5e5a3eb3c6f39e898f1f87ae40b21a05aacb0e8.zip
these aren't used anymore
-rw-r--r--src/window-xlib.c38
-rw-r--r--src/window-xlib.h4
2 files changed, 0 insertions, 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);