summaryrefslogtreecommitdiff
path: root/xutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'xutil.h')
-rw-r--r--xutil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xutil.h b/xutil.h
index 609d20c..e067edd 100644
--- a/xutil.h
+++ b/xutil.h
@@ -72,6 +72,7 @@ namespace x {
// the callback on every hit of that key. Ungrabs and returns when the
// callback returns true.
void globalKeyWatch(Display *dpy, Keysym keysym, std::function<bool(const XKeyEvent&)> callback);
+ void globalKeyWatch(Display *dpy, Keycode keycode, std::function<bool(const XKeyEvent&)> callback);
// Grab the whole keyboard globally, and run the callback on every keyboard
// key event. Ungrabs and returns when the callback returns true.