popupApplet and window focus

Björn Ruberg bjoern at ruberg-wegener.de
Mon May 25 20:40:31 CEST 2009

>> 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. 
If it is not supposed to work, why is there this setPassivePopup() method?
On Kubuntu 9.04 even the digital-clock popup is passive. Why not on Fedora???

>> Second issue:
>> My virtual keyboard can be dragged on the desktop of course. But it never
>> worked there. Because it is no popup in the applet, it automatically gets
>> focus when you click on a button on it. Is there a way to prevent it from
>> stealing focus? And if not, can you implement one?
>urf... this will probably require a nasty-ish hack like whenever the
>graphicswidget gets focus checking for view() and then if view() un-focusing
>it and hope that it un-focuses before the event hist the queue.

Well. If you want a virtual keyboard in plasma that works from the desktop, 
you probably have to do that. There is quite certainly no other way to send 
keys to active apps, no matter whether they are Qt, Gtk, or anything else, 
than the way I do it. And I need the focus on the last active window or 
Question is whether a virtual keyboard really has to work from the desktop. 
You will normaly not use it from there. Cannot imagine it. You want it as a 
popup, not behind your desktop.
But I get users complaining that plasmaboard does not work. They are confused.

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 Touchscreen devices 
are coming and currently we piss touchscreen users off.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090525/824bdfdf/attachment.htm 

More information about the Plasma-devel mailing list