Window management through alt+f2

Ryan P. Bitanga ryan.bitanga at gmail.com
Sun Sep 21 09:08:40 CEST 2008


Hey everyone,

In case anyone is interested, I uploaded a window manager runner. It's
basically a proof of concept work that shows how to execute code that
can only be run in the GUI thread within a runner.

I had to use a QWaitCondition to block the worker thread until the GUI
thread executes the GUI thread only code. A QEvent subclass signals the
GUI thread to perform the GUI thread only code in an event handler, or
at least get called by the event handler.

In case anyone follows this path, it goes with saying that  you shouldn't
do anything that takes up too much time. The user might get
frustrated with the unresponsiveness of the GUI.

I'm not too happy with the code, so if someone can think of a more
elegant way to do this I'd appreciate it if you shared it. :)

Btw, this is yet another of my multiple-action-support-required runners.
Comment out all the action related stuff if you want it to compile
without applying the patch. :D

Cheers,
Ryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: window.png
Type: image/png
Size: 224904 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080921/87a66f8b/attachment-0001.png 


More information about the Plasma-devel mailing list