From bc9d9528c07819dda788fd775c9ef4fc510c23e6 Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 20 Oct 2013 01:55:32 +0000 Subject: wrap key ungrab like btn ungrab, for it'll be used again --- xutil.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'xutil.c') diff --git a/xutil.c b/xutil.c index 7d7b13b..7006d2b 100644 --- a/xutil.c +++ b/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 @@ -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) { -- cgit v1.2.3-2-gb3c3