Diffusion KWin 3604aaf74cac

Close screen grabbing effect when screensaver starts

Authored by davidedmundson on Jun 23 2019, 3:59 PM.

Description

Close screen grabbing effect when screensaver starts

Summary:
The screenlock fails on X11 if it can't grab the keyboard.

We can't nicely solve the generic case. We can solve the common case of
a kwin effect being active.

It's not critical, arguably not even desirable to have these effects
persist after the screen is locked through an external trigger. We can
just close the effect early.

Key grabs have to be relased early before the close animation completes
so that the locker doesn't have a race based on animation times.

It's not ideal, but no worse than the current state for not much work.

BUG: 234153

Test Plan:
locked screen on a timer
opened various effects

Reviewers: KWin, zzag

Reviewed By: KWin, zzag

Subscribers: ngraham, zzag, kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D20890

Details

Committed
davidedmundsonJun 23 2019, 4:00 PM
Reviewer
KWin
Differential Revision
D20890: Close screen grabbing effect when screensaver starts
Parents
R108:3e428d33885a: Merge branch 'Plasma/5.16'
Branches
Unknown
Tags
Unknown