<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:10pt; font-weight:400; font-style:normal;">Dear devs,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I developed the virtual keyboard for plasma, called plasmaboard. You find it here:<br>
http://www.kde-look.org/content/show.php/Plasmaboard?content=101822<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I have two issues with window focus. Plasmaboard needs the last active window to stay focused for being able to work. It just lets the X-Server send key events. If itself gets the focus after you click on it, plasmaboard will recive those key events and that is useless.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>First issue:<br>
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.<br>
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.<br>
Or is it my code? (What would be strange because I did not change it)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I'm a little confused by other applets that where meant to stay passive. The digital-clock for example opened a passive calendar popup. It still does on Ubuntu 9.04, it does not Fedora 10 (although it did earlier) or 11. Looking in the code I don't see a call to setPassivePopup(true). So, why the hell does it stay passive on Ubuntu? You see, I'm really confused.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Second issue:<br>
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?<br>
Plasmaboard can never work correctly if you don't. (Virtual keyboards may be the only plasmoid that do not want to get focused when clicked. They simply cannot work if they are)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Well. Hope you can help me.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Thanks for help and all the great work you already did for plasma!<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Björn</p></body></html>