popupApplet and window focus

Aaron J. Seigo aseigo at kde.org
Mon May 25 21:12:44 CEST 2009


On Monday 25 May 2009, Björn Ruberg wrote:
> >> First issue:
> >> Plasmaboard uses the class PopupApplet. When clicking on the icon, the
> >> keyboard appears. This keyboard must stay unfocused! So I used the
> >> method setPassivePopup(true). That worked great. But when I upgraded my
> >> working machine from Fedora 10 to Fedora 11 Preview it stopped working.
> >> Since then the opening keyboard steals focus from the window and is
> >> useless. This may be a bug invented in qt-4.5 or kde-4.2.2 .
> >> setPasivePopup is rarely used, so it is possible that no one noticed.
> >
> >well, it's more like "it's totally cool for popups to have focus" ...
> > we'll need some work-around for this for Plasmaboard. either that or else
> > Plasmaboard will have to provide and manage it's own popup instead of
> > relying on PopupApplet for this ....
>
> Sorry, didn't got that completly.
> The passive popups worked already. "Suddenly" they are not working.

mmmmm.. define "not working"; they changed a bit in how they work, but that 
was to fix other issues. passive doesn't mean "can't get focus"

> Please help me at least with issue one. I think it's quite important to
> have a working virtual keyboard for KDE when 4.3 comes out. Cheap

i wonder if it would be possible to track the last-focused window and just 
send x events directly to it. but yes, otherwise .. hm ... i think that the 
keyboard would need to handle it's own popup window and ensure it never gets 
focus. putting that into passive popup as a general case situation will screw 
up other widgets that do need focus; perhaps we can fold it into popupapplet 
for 4.4 if there's a general need for it.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090525/5d930380/attachment.sig 


More information about the Plasma-devel mailing list