Restoring edge tiled windows on Wayland shrinks them

Bug #1768734 reported by mtvoid
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm running Ubuntu 18.04 with a vanilla GNOME session under Wayland (the issue presents with the default Ubuntu session too). I've encountered this issue with applications that use Client-Side window decorations, which is most of the GNOME applications. Windows with borders drawn through the window manager do not have this issue.

Steps to reproduce:
1. Open an application that uses client-side decorations, e.g. gnome-terminal.
2. Edge tile the window by snapping the window to the left or right screen edge via dragging or Super+left/right keyboard shortcut.
3. Unsnap the window to restore it to its non-tiled state.

Expected behaviour:
The position and dimensions of the window after undoing the edge tiling should be restored to exactly what it was prior to tiling.

Observed behaviour:
Every time the window is unsnapped from the edge, its size gets smaller. Repeating it over and over will lead to it eventually shrinking to the minimum possible size.

I've found this issue only with client-side decorated windows, and only while restoring from split view / edge tiling. Restoring from a normal maximized state is ok.

Tags: bionic
Revision history for this message
mtvoid (mtvoid) wrote :
Revision history for this message
mtvoid (mtvoid) wrote : Re: Restoring edge tiled windows with client-side decorations shrinks them (Wayland)

The bug shows up only in a Wayland session. The behaviour is normal under Xorg. Quite possibly an issue with GTK+, which is improperly handling the sizing of client-side decorated windows when tiling/untiling them.

summary: - restoring edge tiled windows with client-side decorations shrinks them
+ Restoring edge tiled windows with client-side decorations shrinks them
+ (Wayland)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please report this bug the the mutter developers here:
https://gitlab.gnome.org/GNOME/mutter/issues

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

... and tell us the URL of the new bug.

Changed in mutter (Ubuntu):
status: New → Incomplete
mtvoid (mtvoid)
affects: gtk → mutter
summary: - Restoring edge tiled windows with client-side decorations shrinks them
- (Wayland)
+ Restoring edge tiled windows on Wayland shrinks them
Revision history for this message
mtvoid (mtvoid) wrote :

I've found a recent bug report for this issue on the GitLab site for mutter:
https://gitlab.gnome.org/GNOME/mutter/issues/140

This also requires me to correct my initial bug report. The issue is unrelated to client-side decorated windows, but affects all native Wayland windows, while XWayland windows are unaffected.

Revision history for this message
Christian Rauch (christianrauch) wrote :
tags: added: bionic
Changed in mutter:
importance: Undecided → Unknown
status: New → Unknown
Changed in mutter (Ubuntu):
status: Incomplete → Fix Released
Changed in mutter:
status: Unknown → Fix Released
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.