]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
Merge branch 'master' into chaz
[chaz/openbox] / openbox / focus.c
index d86f1c0b348f953fbb2b98824a80b9023bb23aeb..a4626bf83af64c900efafb1d45c3695fca832cf3 100644 (file)
@@ -100,6 +100,10 @@ void focus_set_client(ObClient *client)
         active = client ? client->window : None;
         OBT_PROP_SET32(obt_root(ob_screen), NET_ACTIVE_WINDOW, WINDOW, active);
     }
+
+    /* when focus is moved to a new window, the last_user_time timestamp would
+       no longer be valid, as it applies for the focused window */
+    event_reset_user_time();
 }
 
 static ObClient* focus_fallback_target(gboolean allow_refocus,
@@ -194,7 +198,7 @@ void focus_nothing(void)
 
     /* when nothing will be focused, send focus to the backup target */
     XSetInputFocus(obt_display, screen_support_win, RevertToPointerRoot,
-                   event_curtime);
+                   event_time());
 }
 
 void focus_order_add_new(ObClient *c)
This page took 0.02106 seconds and 4 git commands to generate.