diff options
author | okan <okan> | 2013-10-20 01:55:32 +0000 |
---|---|---|
committer | okan <okan> | 2013-10-20 01:55:32 +0000 |
commit | 5b733a152daa01493301333a7e756394f9b45455 (patch) | |
tree | 7e093b57125d105e6c2a2995cba0d6cb3758caa0 /xutil.c | |
parent | 9ff288baefadb19f50def66072d1a9a765efe5b5 (diff) | |
download | cwm-5b733a152daa01493301333a7e756394f9b45455.tar.gz cwm-5b733a152daa01493301333a7e756394f9b45455.tar.xz cwm-5b733a152daa01493301333a7e756394f9b45455.zip |
wrap key ungrab like btn ungrab, for it'll be used again
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xutil.c b/xutil.c index f33fa9a..30a89f8 100644 --- a/xutil.c +++ b/xutil.c @@ -102,6 +102,12 @@ xu_key_grab(Window win, u_int mask, KeySym keysym) True, GrabModeAsync, GrabModeAsync); } +void +xu_key_ungrab(Window win) +{ + XUngrabKey(X_Dpy, AnyKey, AnyModifier, win); +} + int xu_getprop(Window win, Atom atm, Atom type, long len, unsigned char **p) { |