Home > English, Tecnologia > Smart Put Plugin

Smart Put Plugin

It’s not so simple to explain what this plugins does, so, since an image is worth a thousand words, maybe a video is worth a thousand images:

It puts the current window in the empty region of the screen with maximum available free space!
It was born from the perception with the combined use of maximumize/minumumize plugins: sometimes everything we just wanted was to put a window in an available empty region of the screen. So… we did it!
As is becoming a standard in this kind of plugin most of the code is inspired/stolen from the maximumize plugin.The algorithm is actually dumb and, maybe, it’s even not correct, but in our tests it worked pretty damn well.

The plugin works like this: a window has four corners. For each window, on each corner we put a box with height 1 pixel and width of 1 pixel. Using routines from the maximumize plugin we expand these boxes and find witch one has maximum area. If the box with maximum area is bigger than the current window box than we just set a new box for the current window. And believe-me: it works!

Finally: It is another useful plugin from us (Eduardo Gurgel and Marco Diego)! You can wait for more useful plugins coming soon!

Code here

  1. 5 November, 2008 at 8:25 am

    Very nice! Now if only I could have Gimp windows automatically grouped and arranged like this…

  2. 5 November, 2008 at 10:25 am

    One step torwards Blender like desktop environment 🙂

    Indeed, would be neat for Gimp…. single window-gui ftw.

  3. 5 November, 2008 at 10:35 am

    “Very nice! Now if only I could have Gimp windows automatically grouped and arranged like this…”

    Our next plugin will do it. Maybe Auto-Smart Put or something like that.

    ASAP we will post it here.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: