mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
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.
This commit is contained in:
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…
x
Reference in New Issue
Block a user