Kristian’s look on things

December 18, 2007

The maximumize plugin

Filed under: Compiz Fusion — Tags: , , , , , — kristian @ 4:16 am

The maximumize plugin was invented during the ubuntu developer summit, and is incredibly simple at the moment.

All it does is resize a window so it fits the largest available space it’s in. That is, if you have two terminals, maximumizing both will fill screen. This is convenient for using all of your screen real estate.

However, the plugin is not properly finished, and not suitable for a release right now. It ended up in the shadow of school work and other projects, and now behind shelf too. However, it is not forgotten.

It currently does the basic maximumizing, but that’s all it does, and it’s not extremely smart about it.

I’ve been talking with Gavintlgold and Fyda on IRC (and the forums) about it the last few days, and we’ve come up with a few ideas, some which were already planned.

First of all, it needs an animation, and there are a few ways of doing this. Second, it needs to be smarter about which windows to ignore and not, this is easily achieved through the window matching interface. It also needs the ability to deal with overlapping windows. Right now, it has a little bit of tolerance, but not much (40px).

The basic algorithm for expanding the window is also incredibly stupid, it would serve as a perfect text book example of a completely un-optimized algorithm which could easily be improved in steps. All it does is increase the window size by 1 pixel at a time, which means you’ll iterate a lot in most cases. This could be improved in different ways, and doing so would allow the plugin do use this function more frequently, thus allowing it to also have a mode that moves the window to the location with the biggest free area.

Allowing the window to actually shrink might also make sense, that’s a quick hack in any event.

I intend to do all of this when I’m finished with Shelf, but I welcome input and ideas. As for a date, I expect I’ll finish the majority of shelf during Christmas. However, I do have another significant project planned which might take precedence.

5 Comments »

  1. So this plugin stretches windows, but leaves them usable by the mouse and keyboard? so if i were to take a non-resizable window with a height of 800 pixels and invoke this on a screen with a height of only 600, it would shrink the window so I can see everything and operate it without scrolling around? Or is it that Shelf is supposed to have that functionality? or neither?

    Comment by TychoQuad — February 12, 2008 @ 6:44 am

  2. This plugin could get the ONE for me ;)

    I would use it, for example to maximize the GIMP Window containing the picture.
    So in my oppionion, at least there should be an option to switch off the “find-greatest-free-space”-ability.

    The “shrink”-option, should also be optional.
    For example: You’ve got a nautilus-window in the back of you desktop, drag&drop a picture into your gimp mainwindow and want to “maximumize” the fresh picture-window. shrinking would be senseless here.
    To my mind, it would be better, if the window looked for windows it is overlapping (and the windows, under that window) and ignores them in its attempt to expand.

    Best wishes
    the “looking forward to a useful feature”-sumpfi

    Comment by Sumpfi — March 14, 2008 @ 2:14 am

  3. i think this opinion is good for me ,ed hardy coats

    Comment by ed hardy coats — January 29, 2010 @ 4:53 am

  4. r4 card

    Comment by eyewear — March 19, 2010 @ 12:50 pm

  5. made by ksharp

    Comment by wow cd key — April 8, 2010 @ 10:58 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress