macos: avoid size/origin changes when possible
authorChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 21:09:57 +0000 (13:09 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:24:11 +0000 (12:24 -0700)
commitc7a6d1e8bfc07cc33a61953fcd02c6793b8b9401
treeb895871456c452d5e6366948d29729d66e6dad2e
parent17b40ca1487b2427598e8404af22d8b1fe83726d
macos: avoid size/origin changes when possible

If _gdk_macos_surface_move_resize() was called with various -1 parameters
we really want to avoid changing anything even if we think we know what
the value might be. Otherwise, we risk messing up in-flight operations that
we have not yet been notified of yet.

This improves the chances we place windows in an appropriate location as
they don't et screwed up before window-manager placement.
gdk/macos/gdkmacossurface.c