zzag created this revision. zzag added a reviewer: Plasma. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. zzag requested review of this revision.
REVISION SUMMARY Every time Breeze needs to check whether given widget has an alpha channel, it makes a synchronous X call to figure out whether a compositing window manager is running on a particular screen. This is inefficient! Luckily for us, Qt XCB QPA monitors compositing manager selections and caches the ownership status of each one. That cached ownership data can be accessed via QX11Info::isCompositingManagerRunning(). REPOSITORY R31 Breeze BRANCH use-qx11info-is-compositing-manager-active REVISION DETAIL https://phabricator.kde.org/D26978 AFFECTED FILES kstyle/breezehelper.cpp kstyle/breezehelper.h kstyle/breezewindowmanager.cpp To: zzag, #plasma Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart