diff options
author | Tom Smeding <t.j.smeding@uu.nl> | 2024-02-01 14:09:26 +0100 |
---|---|---|
committer | Tom Smeding <t.j.smeding@uu.nl> | 2024-02-01 14:28:15 +0100 |
commit | 119b623640254f425a89a3f13ce5cbe633ead9c2 (patch) | |
tree | 348f17181e5afb6bebc8a68db34de9d214ffd431 /xutil.h | |
parent | a4f291dcfdbbb17f59679fbe0f010062a4cd49e5 (diff) |
Diffstat (limited to 'xutil.h')
-rw-r--r-- | xutil.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. |