ignore not used X11 changed events

--some windows are sending plenty windowChanged
events without Latte using them. We block them in
order to not trigger any Latte updates.
v0.7
Michail Vourlakos 7 years ago
parent f777a5a587
commit 71923199ef

@ -274,8 +274,9 @@ void XWindowInterface::windowChangedProxy(WId wid, NET::Properties prop1, NET::P
return;
}
//! ignore when, eg: the user presses a key
if (prop1 == 0 && prop2 == NET::WM2UserTime) {
//! ignore when, eg: the user presses a key, or a window is sending X events
//! without needing to (e.g. Firefox, https://bugzilla.mozilla.org/show_bug.cgi?id=1389953)
if (prop1 == 0 && (prop2 == NET::WM2UserTime || prop2 == NET::WM2IconPixmap)) {
return;
}

Loading…
Cancel
Save