Fade out OnScreenNotification when moving with the mouse over it
ClosedPublic

Authored by graesslin on Jan 4 2017, 5:04 PM.

Details

Summary

This change triggers a fade out animation when the mouse is moved over
the OnScreenNotification, thus revealing the windows underneath. When
moving the mouse out of the OnScreenNotification it gets faded in again.

This is useful for various cases, e.g. when picking a color and the pixel
one wants to pick is underneath the notification, or when trying to kill
a window...

Test Plan

Manual testing in nested setup

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 9717.Jan 4 2017, 5:04 PM
graesslin retitled this revision from to Fade out OnScreenNotification when moving with the mouse over it.
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 TranscriptJan 4 2017, 5:04 PM
Restricted Application added subscribers: kwin, plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.Jan 4 2017, 5:49 PM
davidedmundson added a reviewer: davidedmundson.
davidedmundson added a subscriber: davidedmundson.
davidedmundson added inline comments.
onscreennotification.cpp
209

you could have put the animation in the constructor normally and then do setTargetObject once you make the window

This revision is now accepted and ready to land.Jan 4 2017, 5:49 PM
This revision was automatically updated to reflect the committed changes.