wayland: Do not account for custom frame extends
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:
After (this MR):
The window is restored correctly to the previous floating size: