Merge branch 'vulkan-win32-fix-resize' into 'main'

gdksurface-win32.c: Call _gdk_surface_update_size() more (fix resizing on Vulkan on certain drivers)

Closes #6565

See merge request GNOME/gtk!7562
This commit is contained in:
Chun-wei Fan 2024-08-19 03:53:29 +00:00
commit f592a303e4

View File

@ -5080,6 +5080,15 @@ gdk_win32_surface_apply_queued_move_resize (GdkSurface *surface,
GDK_NOTE (EVENTS, g_print (" ... set window position\n"));
/*
* Workaround situations in the current Win32 surface resize code that may have notified GDK
* too late for resizes, which manifests on nVidia drivers (and AMD drivers in mailbox
* presentation mode) running under Vulkan when one interactively enlarges the surface (HWND).
*
* See MR !7562 for more details
*/
_gdk_surface_update_size (surface);
return;
}