From 71923199ef481d14b065e53238d25cd334098e1e Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Tue, 2 Jan 2018 14:03:50 +0200 Subject: [PATCH] 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. --- app/xwindowinterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/xwindowinterface.cpp b/app/xwindowinterface.cpp index 76ce54a8a..da89e6657 100644 --- a/app/xwindowinterface.cpp +++ b/app/xwindowinterface.cpp @@ -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; }