PDA

View Full Version : automatic window resizing


chess314
November 16th, 2006, 10:01 PM
I made some changes to the wobbly plugin.

If you compile with my wobbly code, you should be able throw a window and when it hits something, the window will automaticly resize to fill an empty area of the screen. Let me know what you guys think.

heres the wobbly.c file, and make sure you have window snapping enabled.
http://dl025.filefactory.com/dl/f/badd71/b/7/h/e75e8e534a431051/

mikedee
November 17th, 2006, 12:24 AM
It looks like you have written this for a very old version of compiz, I have modified it so that it compiles and runs on current git (it should work on 0.3.2 as well). All of the multi head code is now different in the core so you will need to update that part yourself, the other changes are simple changes to the vtable and an extra output parameter to the paintScreen function.

I have noticed a few small bugs, sometimes the window resizes itself on grab rather than after being released. Sometimes the window will think that another window is the edge of the screen rather than see the screenshot.

wobbly.c (v.0.3.2 compatable) (http://www.anykeysoftware.co.uk/compiz/plugins/wobbly.c)
screenshot (http://www.anykeysoftware.co.uk/compiz/plugins/wobblyscreen.png)

chess314
November 17th, 2006, 06:01 PM
thanks for fixing those things. it is pretty buggy. if anyone thinks its cool ill keep working on it.

mikedee
November 17th, 2006, 06:44 PM
I think that it would be a good idea if it could be seperated into a seperate plugin which could then be used whether or not you have wobbly enabled.

Maybe you could even extend the functionality so that it has a feature which could auto size all the windows on the screen, like an unclutter function.