diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-10-20 01:55:33 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-10-20 01:55:33 +0000 |
commit | 011a88aacfe3a5bb917fae82f9eae58f2c439486 (patch) | |
tree | ddb2ffb86ccd164646eecd06429d3f757bc96395 /app/cwm/xutil.c | |
parent | 0bea80278588cecf866c90055c76243d2f7c2a64 (diff) |
wrap key ungrab like btn ungrab, for it'll be used again
Diffstat (limited to 'app/cwm/xutil.c')
-rw-r--r-- | app/cwm/xutil.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c index 7d7b13bd7..7006d2b82 100644 --- a/app/cwm/xutil.c +++ b/app/cwm/xutil.c @@ -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.76 2013/10/19 19:39:34 okan Exp $ + * $OpenBSD: xutil.c,v 1.77 2013/10/20 01:55:32 okan Exp $ */ #include <sys/param.h> @@ -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) { |