graesslin created this revision. graesslin added reviewers: KWin, Plasma on Wayland. Restricted Application added subscribers: kwin, plasma-devel. Restricted Application added projects: Plasma on Wayland, KWin.
REVISION SUMMARY EffectsHandler gains a new method to startInteractiveWindowSelection which just delegates to the one in Platform. That way a window can be selected and returned to an Effect. The screenshot effect makes use of this new functionality and provides an interactive window screenshot mode which saves to a temporary file. Note that this is not yet the variant intended for use in spectacle. TEST PLAN Took a screenshot on Wayland REPOSITORY rKWIN KWin BRANCH screenshot-interactive-selection REVISION DETAIL https://phabricator.kde.org/D3367 AFFECTED FILES autotests/mock_effectshandler.h effects.cpp effects.h effects/screenshot/screenshot.cpp effects/screenshot/screenshot.h libkwineffects/kwineffects.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma_on_wayland Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas