a334c147
by Jiangyi Chen at 2026-07-24T22:18:38+02:00
winewayland.drv: Avoid ABBA deadlocks between win_data_mutex and user_mutex.
Make the lock acquisition order consistent: always acquire the user_mutex lock
on the user32 side first, and then the win_data_mutex on the wayland side.
Otherwise, when the CCTV Video main program starts, there is a nearly 40%
probability of a race deadlock between set_client_surface and update_surface_region
(which indirectly calls wayland_window_surface_flush).
Signed-off-by: Jiangyi Chen <chenjiangyi@uniontech.com>