[Git][wine/wine][master] win32u: Update client surface state before swapping or presenting.

"Alexandre Julliard (@julliard) via Wine-commits" <[email protected]> Tue, 06 Jan 2026 15:14:11 -0600
Newsgroups gmane.comp.emulators.wine.cvs
Message-ID <[email protected]>

Alexandre Julliard pushed to branch master at wine / wine


Commits:
4164535e by Rémi Bernon at 2026-01-06T14:56:10+01:00
win32u: Update client surface state before swapping or presenting.

With winex11, when multiple client surfaces are being active at the same
time, we are detaching / attaching the client surfaces to keep the last
one onscreen.

This is done within the client_surface_present call, and it was called
from within opengl_drawable_flush, before GL swap.

Since bcb1f3d29562edabfd089bedb539cf2295a5e6a8 we don't call the flush
callback as often and we only call client_surface_present *after* the
VK present / GL swap, which breaks the display as the surface is not
offscreen and yet not attached to its parent.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59190

- - - - -


4 changed files:

- dlls/win32u/opengl.c
- dlls/win32u/vulkan.c
- dlls/win32u/window.c
- include/wine/gdi_driver.h


View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/4164535eac54a2c5d561cd996c247e7a84644400

-- 
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/4164535eac54a2c5d561cd996c247e7a84644400
You're receiving this email because of your account on gitlab.winehq.org.