Mir

GTK draws its own (double) window decorations under Mir

Bug #1445540 reported by Daniel van Vugt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
New
Undecided
Unassigned
gtk+3.0 (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

GTK draws its own window decorations under Mir.

This is not ideal. It should default to letting the shell decorate all windows.

summary: - GTK draws its own window decorations under Mir
+ GTK draws its own (double) window decorations under Mir
tags: added: mir
Changed in gtk+3.0 (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Lars Karlitski (larsu) wrote :

Many gtk applications are moving towards client side decorations in order to put widgets into their title bars. We'd like to stop patching them (upstream or downstream) with the move to Mir and Unity 8, as that is a break in design anyways and many of the newly designed default applications will use client side decorations as well.

Do we really still need the csd/ssd duality or could we just let all apps draw their decorations themselves?

Changed in gtk+3.0 (Ubuntu):
importance: High → Wishlist
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sure Mir will/should support client-side decorations.

The best suggestion I have right now is:
  1. You set mir_surface_type_freestyle
  2. Wait for Mir shells to honour the surface type and not wrap extra decorations around it.

In future we might have some additional attribute you could set for client-side decorations instead of mir_surface_type_freestyle. Not sure...

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Clarification: By decorations I mean the "physical" window extents and not shadows.

AFAIK we have no plan to allow for client-side shadows (ie. rendering beyond the physical snapping extents of the window).

Of course Mir can't know if you're painting shadows or not. Just your window placement will look wrong if you do that bit yourself.

Server-side shadows will look more consistent (in size and gradient) and allow us to do proper 3D shadows in future too.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Added a Mir task - we need to honour the surface type and avoid title bars on certain types.

tags: added: gtk-mir
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.