[effects] Add interactive window selection mode to ScreenshotEffect
ClosedPublic

Authored by graesslin on Nov 15 2016, 2:42 PM.

Details

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

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 8162.Nov 15 2016, 2:42 PM
graesslin retitled this revision from to [effects] Add interactive window selection mode to ScreenshotEffect.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added reviewers: KWin, Plasma on Wayland.
Restricted Application added projects: Plasma on Wayland, KWin. · View Herald TranscriptNov 15 2016, 2:42 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
sebas accepted this revision.Nov 16 2016, 4:22 PM
sebas added a reviewer: sebas.
sebas added a subscriber: sebas.
sebas added inline comments.
effects/screenshot/screenshot.h
58

... a window to screenshot.

This revision is now accepted and ready to land.Nov 16 2016, 4:22 PM
This revision was automatically updated to reflect the committed changes.