About decorations in Unity

Bill Spitzak spitzak at gmail.com
Tue Mar 27 18:30:29 PDT 2012

Thiago Macieira wrote:

>> Maybe a protocol that allow to compositor to tell clients to
>> enable/disable decorations drawing, compositor should to use this
>> protocol when a client surface is maximized/unmaximized and clients
>> adapt the GUI in the best way depending on the case.
> I don't think that's necessary. All the toolkits need to know is whether the 
> window is maximised or not.

Actually I do think the compositor needs to tell the clients to not draw 
a few things. Mostly the "edges". If you want to duplicate snap-to-edge 
and maximized, you have to get the 3D edges drawn on windows removed. 
The alternative is to position the windows with these edges off the 
output but this may make them appear on an adjacent output, and requires 
the compositor to know how thick they are.

Tiling window management may also want "edges" removed.

An additional flag that says "don't draw the titlebar" may also be 
useful. For now it is only for fullscreen windows, but it may be used by 
designs that don't want titlebars, or conversely for getting the windows 
displayed on an output that insists on adding a titlebar of it's own 
(such as a remote X session).

More information about the wayland-devel mailing list