graesslin created this revision. graesslin added reviewers: KWin, Plasma on Wayland, VDG. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY From feedback we got it seems that not all users agree to games and other applications blocking compositing. Some users prefer to have compositing always on even if this gives a small performance penelity. This change introduces a dedicated config option to specify whether games are allowed to block compositing. By default this option is enabled. The setting can be overwritten with a window specific rule. So usecases like all windows except this very specific one are supported. In the user interface the config option is shown where previously the unredirect fullscreen option was shown. TEST PLAN Run a game which should block compositing, verified it blocks. Changed the setting, run the game again, verified it doesn't block. And once more for with allowing to block. REPOSITORY rKWIN KWin BRANCH blocking-compositing REVISION DETAIL https://phabricator.kde.org/D2584 AFFECTED FILES client.cpp kcmkwin/kwincompositing/compositing.cpp kcmkwin/kwincompositing/compositing.h kcmkwin/kwincompositing/compositing.ui kcmkwin/kwincompositing/main.cpp kwin.kcfg options.cpp options.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma_on_wayland, #vdg Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas