Skip to content

wayland: Do not account for custom frame extends

Christian Rauch requested to merge christian-rauch/mutter:fix_frame_extends into main

Part of !1811 that fixes restoring the correct floating size after un-fullscreen a fixed size window:

Previously, the window size would be incremented/decremented by the frame
extends regardless of if a window uses custom frames. This leads to wrong
window sizes when restoring from maximized or fullscreen state.

This does not unconstrain the fullscreen mode (i.e. the configured fullscreen resolution will still be constrained by the min/max limits). This only fixes the shrinking of the restored window.

Before (main):

Following the fullscreen toggle example from #1735 (libdecor-demo, 1, 4, 5, 4, 5, ...), the window shrinks by decoration dimension:

restore_main

After (this MR):

The window is restored correctly to the previous floating size:

restore_mr

Merge request reports