GdkWin32: Custom move resize not working after restoring surface from maximize via keyboard
How to reproduce:
- Start gtk4-demo
- Maximize the window
- Press Win+↓
- Drag the titlebar to move the window
That combination is not handled in GTK, it's left to the system: https://gitlab.gnome.org/GNOME/gtk/-/blob/4.14.2/gdk/win32/gdkevents-win32.c?ref_type=tags#L353-356. In such case restoring is not done via gdk_win32_surface_unmaximize, so inhibit_configure
remains set and gdk_win32_surface_do_move_resize_drag
returns early
We should update the window state via WM_STYLECHANGED
and WM_WINDOWPOSCHANGED
instead (WM_DISPLAYCHANGE shouldn't be needed)
Edited by Luca Bacci