]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
only grab keybinds on the root window, not every client window
[chaz/openbox] / openbox / client.c
index 2ca9b5182fdd6fa8a6716f93fcb2425812ab1b60..ac500e319a2ae140cb34c57956d8e2e8b67f3821 100644 (file)
@@ -374,7 +374,6 @@ void client_manage(Window window)
              self->window, newx, newy, self->area.width, self->area.height);
     client_apply_startup_state(self, newx, newy);
 
-    keyboard_grab_for_client(self, TRUE);
     mouse_grab_for_client(self, TRUE);
 
     if (activate) {
@@ -490,7 +489,6 @@ void client_unmanage(ObClient *self)
         event_ignore_queued_enters();
     }
 
-    keyboard_grab_for_client(self, FALSE);
     mouse_grab_for_client(self, FALSE);
 
     /* remove the window from our save set */
@@ -3114,6 +3112,9 @@ void client_activate(ObClient *self, gboolean here, gboolean user)
     {
         client_hilite(self, TRUE);
     } else {
+        if (event_curtime != CurrentTime)
+            self->user_time = event_curtime;
+
         /* if using focus_delay, stop the timer now so that focus doesn't
            go moving on us */
         event_halt_focus_delay();
This page took 0.02327 seconds and 4 git commands to generate.