[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Ksshaskpass ?
From:       Daniel Nicoletti <dantti12 () gmail ! com>
Date:       2014-12-12 15:24:41
Message-ID: CACo8zOfj5iPWau8X0187CpZt91JPBu3ps4zWUhB94+NYwpBojw () mail ! gmail ! com
[Download RAW message or body]

Is there a similar QWidget::grabKeyboard for the QML/Quick world?

2014-12-12 13:11 GMT-02:00 Thomas Lübking <thomas.luebking@gmail.com>:
> On Freitag, 12. Dezember 2014 08:00:45 CEST, Martin Gräßlin wrote:
>
>> I'd suggest to do a platform check as on Wayland it cannot work (grab
>> keyboard fails).
>
>
> You're certainly right in that the guarding is entirely superfluous on
> wayland, but grabbing still "works".
> Despite the platform window ::setKeyboardGrabEnabled() returns false for
> wayland, QWidget simply ignores that and assigns the grabber.
>
> What's worse: looking up the Qt code, QWidget only maintains the grabber as
> static variable, the grabbing state is never re-tested.
>
> Eeeewww... this is gonna be more complex, I fear.
>
> I wonder whether the grabbing state can actually be tested except by
> approaching a grab from a sidearm process. In doubt, the only possible
> hardening would be to continuously - and the only test whether it worked
> would be to invoke QWindow::setMouseGrabEnabled(bool grab) as well.
>
> Stay tuned ;-)
>
> Cheers,
> Thomas



-- 
Daniel Nicoletti

KDE Developer - http://dantti.wordpress.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic