don't steal focus from a window if it was used very recently, when someone uses _NET_ACTIVE request.
This commit is contained in:
parent
e737150701
commit
d614bebf6a
1 changed files with 4 additions and 3 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue