← easystroke

XBell is broken, replace it with XkbBell

29f004a36a3ca26570395db55f6d05e9a209ba13 · Thomas Jaeger · Sep 8, 2012 03:18

+2 −1 · 1 file changed

  • main.cc +2 −1
diff --git a/main.cc b/main.cc
index 455fdd7..c7b5728 100644
--- a/main.cc
+++ b/main.cc
@@ -32,6 +32,7 @@
 #include <X11/extensions/XTest.h>
 #include <X11/extensions/Xfixes.h>
 #include <X11/Xproto.h>
+#include <X11/XKBlib.h>
 // From #include <X11/extensions/XIproto.h>
 // which is not C++-safe
 #define X_GrabDeviceButton              17
@@ -940,7 +941,7 @@ protected:
 		if (!IS_CLICK(act))
 			Ranking::queue_show(ranking, e);
 		if (!act) {
-			XBell(dpy, 0);
+			XkbBell(dpy, None, 0, None);
 			return parent->replace_child(NULL);
 		}
 		RModifiers mods = act->prepare();