[gtk/wip/chergert/macos-fix-titled-resize] macos: fix origin during live resize of titled window
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/macos-fix-titled-resize] macos: fix origin during live resize of titled window
- Date: Fri, 25 Feb 2022 07:29:39 +0000 (UTC)
commit a56828237a7ef974d832fa837452a8b4a2f89f40
Author: Christian Hergert <christian hergert me>
Date: Thu Feb 24 23:27:09 2022 -0800
macos: fix origin during live resize of titled window
When using server-side-decorations, we need to avoid potential cycles with
compute-size as it may not have the new sizing information yet. We can
just short circuit during "live resize" to get that effect.
Fixes poor window resizing from top-left on titled windows.
gdk/macos/gdkmacostoplevelsurface.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacostoplevelsurface.c b/gdk/macos/gdkmacostoplevelsurface.c
index 27289787ca..c84ebb704b 100644
--- a/gdk/macos/gdkmacostoplevelsurface.c
+++ b/gdk/macos/gdkmacostoplevelsurface.c
@@ -421,7 +421,8 @@ _gdk_macos_toplevel_surface_compute_size (GdkSurface *surface)
GDK_TOPLEVEL_STATE_RIGHT_TILED |
GDK_TOPLEVEL_STATE_BOTTOM_TILED |
GDK_TOPLEVEL_STATE_LEFT_TILED |
- GDK_TOPLEVEL_STATE_MINIMIZED))
+ GDK_TOPLEVEL_STATE_MINIMIZED) ||
+ [macos_surface->window inLiveResize])
return FALSE;
/* If we delayed a user resize until the beginning of the frame,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]