Window should be undecorated

Bug #187255 reported by Murat Gunes
2
Affects Status Importance Assigned to Milestone
TopShelf
Fix Committed
Undecided
Unassigned

Bug Description

When using TopShelf on the panel (as opposed to standalone), the main window should be undecorated, since window decorations have no real function other than providing the close button (whose function is duplicated by clicking the TopShelf icon) in this mode. This would provide a more stripped down and simpler appearance, without the loss of any functionality. It should perhaps be optional.

An example would the behavior of Deskbar's "Stick to panel" mode in version 2.21.90 (see http://www.k-d-w.org/node/37).

Murat Gunes (mgunes)
description: updated
Revision history for this message
kripken (kripkenstein) wrote :

The loss of functionality is that an undecorated window cannot be resized. To get around this, I had a special 'resize' action in 0.1 that was sort of, well, clunky. I don't think people liked it.

Sadly there appears to be no way to remove just the titlebar (leaving the resizing capabilities). So I think I will leave this as is for now, unless there is a solution I am missing?

Revision history for this message
Murat Gunes (mgunes) wrote :

Providing a toggle option in the (yet non-existent) preferences would be one possible way: set the window size, and then remove the decorations. If you want to set again, re-enable temporarily. Maybe a size option too.

Revision history for this message
Murat Gunes (mgunes) wrote :

What exactly did the "resize" action do and how did it (not) work?

Revision history for this message
kripken (kripkenstein) wrote :

The old 'resize' action was a button (in the the toolbar), that when pressed redrew the window with decorations, so you could resize it. During that time the toolbar was greyed out and all you could do was press the topshelf icon, which said "stop resizing". Pressing that redrew the normal undecorated window.

My concern is that looking for a toggle option in the preferences will not be obvious for someone looking to just resize the window. A 'resize' button in the toolbar is better, but is pretty odd, UI-wise, I think that's why people didn't like it. Perhaps a button that just removed/adds decorations (without a whole 'resize mode') is less odd, but I am still concerned about that.

kripken (kripkenstein)
Changed in topshelf:
status: New → Fix Committed
Revision history for this message
Murat Gunes (mgunes) wrote :

Just checked out revision 57; looks great, thank you. Keeping the window decorated by default and allowing an undecorated mode as an option looks like a good compromise.

One little thing: "Draw full window" doesn't make much sense. "Will it draw half the window if I uncheck this?" "Draw window decorations" would better.

Revision history for this message
kripken (kripkenstein) wrote :

Yeah, the text I wrote is pretty bad :) Was hoping to get good suggestions.

I would go with "Decorate window" or such, but for a non-GTK programmer, that would sound like something to do with Christmas. Maybe we can come up with something better. I am leaning towards "Draw window border and title".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.