changeset 3136:bd336331297f

Updated #110: Added unbind of focus grab
author unexist
date Fri, 18 Nov 2011 22:54:17 +0100
parents 11a3d3a541d9
children 37080a7864b2
files src/subtle/grab.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/grab.c	Thu Nov 17 19:11:41 2011 +0100
+++ b/src/subtle/grab.c	Fri Nov 18 22:54:17 2011 +0100
@@ -144,6 +144,10 @@
     {
       int i;
 
+      /* Unbind click-to-focus grab */
+      if(subtle->flags & SUB_SUBTLE_CLICK_TO_FOCUS)
+        XUngrabButton(subtle->dpy, Button1, AnyModifier, win);
+
       /* Bind grabs */
       for(i = 0; i < subtle->grabs->ndata; i++)
         {