only use user_time updates if they are on the focused window
This commit is contained in:
parent
c7e0368a4b
commit
b6b9124ad0
1 changed files with 2 additions and 1 deletions
|
@ -1504,7 +1504,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
|
||||||
}
|
}
|
||||||
else if (msgtype == prop_atoms.net_wm_user_time) {
|
else if (msgtype == prop_atoms.net_wm_user_time) {
|
||||||
guint32 t;
|
guint32 t;
|
||||||
if (PROP_GET32(client->window, net_wm_user_time, cardinal, &t) &&
|
if (client == focus_client &&
|
||||||
|
PROP_GET32(client->window, net_wm_user_time, cardinal, &t) &&
|
||||||
t && !event_time_after(t, e->xproperty.time) &&
|
t && !event_time_after(t, e->xproperty.time) &&
|
||||||
(!event_last_user_time ||
|
(!event_last_user_time ||
|
||||||
event_time_after(t, event_last_user_time)))
|
event_time_after(t, event_last_user_time)))
|
||||||
|
|
Loading…
Reference in a new issue