diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-21 11:41:43 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-22 14:15:44 +1000 |
commit | c439c39cc0f985743fbc464849f6caa805b1a1a9 (patch) | |
tree | a98aa896333dc3a921c97057636aaf648138ce5a /src | |
parent | 4f224f4da1405959b74c05d6b15469cf6c0c498f (diff) |
Replace keysym grabs with keycode grabs.
Keysym grabs are tricky to get right for applications that are more
complicated than demo applications. otoh, we know keycode grabs are
working.
So let's go with keycode grabs for now and add keysym grabs later
when we've sorted out the details.
Requires inputproto 1.9.99.15
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/XIPassiveGrab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/XIPassiveGrab.c b/src/XIPassiveGrab.c index ed79f1c..8953013 100644 --- a/src/XIPassiveGrab.c +++ b/src/XIPassiveGrab.c @@ -111,12 +111,12 @@ XIGrabButton(Display* dpy, int deviceid, int button, } int -XIGrabKeysym(Display* dpy, int deviceid, int keysym, +XIGrabKeycode(Display* dpy, int deviceid, int keycode, Window grab_window, int grab_mode, int paired_device_mode, Bool owner_events, XIEventMask *mask, int num_modifiers, XIGrabModifiers *modifiers_inout) { - return _XIPassiveGrabDevice(dpy, deviceid, XIGrabtypeKeysym, keysym, + return _XIPassiveGrabDevice(dpy, deviceid, XIGrabtypeKeycode, keycode, grab_window, None, grab_mode, paired_device_mode, owner_events, mask, num_modifiers, modifiers_inout); @@ -185,10 +185,10 @@ XIUngrabButton(Display* display, int deviceid, int button,Window grab_window, } int -XIUngrabKeysym(Display* display, int deviceid, int keysym, Window grab_window, +XIUngrabKeycode(Display* display, int deviceid, int keycode, Window grab_window, int num_modifiers, XIGrabModifiers *modifiers) { - return _XIPassiveUngrabDevice(display, deviceid, XIGrabtypeKeysym, keysym, + return _XIPassiveUngrabDevice(display, deviceid, XIGrabtypeKeycode, keycode, grab_window, num_modifiers, modifiers); } |