don't steal focus from a window if it was used very recently, when someone uses _NET_ACTIVE request.

This commit is contained in:
Dana Jansens 2010-09-29 15:45:37 -04:00
parent e737150701
commit d614bebf6a

View file

@ -730,9 +730,10 @@ static gboolean client_can_steal_focus(ObClient *self,
/* If the user is working in another window right now, then don't
steal focus */
if (!parent_focused &&
event_last_user_time && launch_time &&
event_time_after(event_last_user_time, launch_time) &&
event_last_user_time != launch_time &&
event_last_user_time &&
(!launch_time ||
(event_time_after(event_last_user_time, launch_time) &&
event_last_user_time != launch_time)) &&
event_time_after(event_last_user_time,
steal_time - OB_EVENT_USER_TIME_DELAY))
{