X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=a4626bf83af64c900efafb1d45c3695fca832cf3;hb=b888197d80cc5c34ad35ce8820b120bc22c3c83f;hp=d86f1c0b348f953fbb2b98824a80b9023bb23aeb;hpb=56fface3a4e2b5970e4867047207da84a58adeb2;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index d86f1c0b..a4626bf8 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -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)