Smarter desktop applet placement

Ambroz Bizjak ambro at b4ever.net
Tue Aug 12 14:01:33 CEST 2008


> I've written some code to do resizing better.
Now it's more complete and can handle vertical resizing as well.
There are some problems, though:
- Proxy widgets may still be badly placed, as the initial size reported is
wrong. I was thinking that could be solved by waiting for their size to
change by itself and repositioning them, however there seems to be no way
to do that. The geometryChanged signal from Applet is not triggered when
the widget resizes itself.
- Panels are still not considered obstacles. The easiest way to fix that
would be to just to get the rectangle of free space and use it for
positioning. Because I really don't want to have any unmovable objects in
the working area, that would severely complicate the algorithm.

I'm attaching patches for trunk and also for 4.1 (resolution changing is
somehow broken in trunk so I tested in 4.1), and also the new version of
the demo app.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plasma-placement-layout5-kde4.1.patch.bz2
Type: application/octet-stream
Size: 5852 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080812/3bf27c0d/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plasma-placement-layout5.patch.bz2
Type: application/octet-stream
Size: 5844 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080812/3bf27c0d/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: desktop-layout-demo-0.2.tar.bz2
Type: application/octet-stream
Size: 6647 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080812/3bf27c0d/attachment-0002.obj 


More information about the Plasma-devel mailing list