[gtk/fix-3728-3799: 1/3] gdkevents-win32.c: Fix maximizing further




commit b2ebe727a72e2a318fc24232f0564dc0dfc2a2e1
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Jul 2 13:18:23 2021 +0800

    gdkevents-win32.c: Fix maximizing further
    
    We also need to pay attention to the time when we get into a maximized
    state...

 gdk/win32/gdkevents-win32.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 2be0aac319..d8baaed803 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -2840,6 +2840,13 @@ gdk_event_translate (MSG *msg,
           unset_bits & GDK_TOPLEVEL_STATE_MINIMIZED)
         gdk_surface_thaw_updates (window);
 
+      if (!(old_state & GDK_TOPLEVEL_STATE_MAXIMIZED) &&
+          set_bits & GDK_TOPLEVEL_STATE_MAXIMIZED)
+        {
+          impl->drag_move_resize_context.native_move_resize_pending = FALSE;
+          impl->toplevel_force_resize = FALSE;
+        }
+
          gdk_surface_set_is_mapped (window, !!IsWindowVisible (msg->hwnd));
          gdk_synthesize_surface_state (window, unset_bits, set_bits);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]