Review Request 125547: kscreen effect: Intercept mouse and set blank cursor

David Rosca nowrep at gmail.com
Thu Oct 8 09:32:07 UTC 2015



> On Oct. 8, 2015, 7:48 a.m., Kai Uwe Broulik wrote:
> > +1 from me
> > 
> > I think the user of the effect wants the screen to darken and with that we should also prevent accidental mouse clicks.
> 
> Martin Gräßlin wrote:
>     what about keyboard?
> 
> Kai Uwe Broulik wrote:
>     Wait a Minute. Would intercepting the mouse also block KIdleTime? That's bad then because PowerDevil uses the KScreen effect to alert the user the system's going to suspend/turn off screen shortly. Wiggling the mouse should cancel that.
> 
> Martin Gräßlin wrote:
>     > Wait a Minute. Would intercepting the mouse also block KIdleTime?
>     
>     That depends a lot on how we implement it. If it grabs the mouse KIdleTime would break. The change here uses the mouse interception in KWin which does not grab the mouse - but that's kind of an implementation detail. And I consider it wrong to use the mouse interception here as I think grabmouse is wanted.
>     
>     The question means to me that implementing this in KWin is the wrong place. If we want to have full control over it, it needs to go to the user of the KScreen effect. That one can grab mouse/keyboard (though dangerous as that breaks screen locking!) and then also knows whether the user wiggled the input.
> 
> Kai Uwe Broulik wrote:
>     Ok, I see, -1 then :)

Actually, I just wanted to hide the cursor and the mouse interception only came as a bonus when finding how to change cursor.
When suspending, this effect is used and there is a cursor even though user has no way to cancel it (unlike before turning off screen). So indeed, it would be better to change it in powerdevil.


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125547/#review86474
-----------------------------------------------------------


On Oct. 7, 2015, 12:55 p.m., David Rosca wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125547/
> -----------------------------------------------------------
> 
> (Updated Oct. 7, 2015, 12:55 p.m.)
> 
> 
> Review request for Plasma and Martin Gräßlin.
> 
> 
> Repository: kwin
> 
> 
> Description
> -------
> 
> The whole screen is turned black with kscreen effect, so we should intercept mouse to prevent accidental clicks.
> Also, it looks better with no visible cursor.
> 
> 
> Diffs
> -----
> 
>   effects/kscreen/kscreen.cpp 67f4551 
> 
> Diff: https://git.reviewboard.kde.org/r/125547/diff/
> 
> 
> Testing
> -------
> 
> Cursor is hidden when effect is active.
> 
> 
> Thanks,
> 
> David Rosca
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20151008/3147f90b/attachment.html>


More information about the Plasma-devel mailing list