Skip to content

macos: Fix moving maximized windows

Arjan Molenaar requested to merge amolenaar/gtk:macos-move-maximized into main

NB. This MR is built on !6882 (merged)

Fixes zooming and unzooming by treating GdkSurface's maximized layout property as a lagging property. maximized will be updated from GdkMacosWindow, derived from the zoomed state from the window itself. As a result zooming and unzooming now shows the proper animation.

One big change is that the window is no longer restored to its normal size when moved. On macOS, windows keep their size when moved in maximized state. GTK should not try to enforce different behavior.

I refactored _gdk_macos_toplevel_surface_present to call _gdk_macos_toplevel_surface_compute_size directly, instead of duplicating the functionality.

Fixes #6436 (closed)

Edited by Arjan Molenaar

Merge request reports