Skip to content

Draft: wayland: place window when unmaximized for the first time

panoplie requested to merge (removed):place-unmaximized-windows into main

When a window is unmaximized, we put it at the position saved in saved_rect. It corresponds to the last position taken by the window in the unmaximized state.

When a window is created directly in the maximized state, we can't compute the position to put in saved_rect because we don't know the unmaximized window size yet (we could need the size if we want centered windows for example).

So when the window is unmaximized for the first time in this case, the position defined in saved_rect is not the one that the window would have taken if it had been created in the unmaximized state.

Execute the window placement when the window is unmaximized for the first time.

Issues #2608 #2112

Merge request reports