diff options
author | okan | 2013-05-23 16:52:39 +0000 |
---|---|---|
committer | okan | 2013-05-23 16:52:39 +0000 |
commit | 0e1a282d21c537a3a9f065464a15044befb6f4d1 (patch) | |
tree | 800f1952cd32945dea37108928df92ad489a7ab1 /xutil.c | |
parent | 5a8fdbc2af0bc6cb55cda04a3dc9ef09bbb40090 (diff) | |
download | cwm-0e1a282d21c537a3a9f065464a15044befb6f4d1.tar.gz |
alter conf_grab(_kbd) to first ungrab AnyKey/AnyModifier, then proceed
to grab keys in keybindingq. we don't need to ungrab/grab on every
addition to the queue, just once with a complete keybindingq; simplify
grabbing keys per screen (during init) and during a MappingNotify.
while here, change conf_grab_{kbd,mouse} to require only a Window.
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xutil.c,v 1.66 2013/05/21 00:29:20 okan Exp $ + * $OpenBSD: xutil.c,v 1.67 2013/05/23 16:52:39 okan Exp $ */ #include <sys/param.h> @@ -106,21 +106,6 @@ xu_key_grab(Window win, u_int mask, KeySym keysym) } void -xu_key_ungrab(Window win, u_int mask, KeySym keysym) -{ - KeyCode code; - u_int i; - - code = XKeysymToKeycode(X_Dpy, keysym); - if ((XkbKeycodeToKeysym(X_Dpy, code, 0, 0) != keysym) && - (XkbKeycodeToKeysym(X_Dpy, code, 0, 1) == keysym)) - mask |= ShiftMask; - - for (i = 0; i < nitems(ign_mods); i++) - XUngrabKey(X_Dpy, code, (mask | ign_mods[i]), win); -} - -void xu_configure(struct client_ctx *cc) { XConfigureEvent ce; |