winex11.drv: Do not call desktop get_current_mode() from UpdateDisplayDevices.
commit83b1d167bd4cf10e9a7b4a7c91b3a2d1e9621d89
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>
Wed, 5 Apr 2023 17:10:35 +0000 (5 20:10 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 6 Apr 2023 12:33:03 +0000 (6 14:33 +0200)
treeb348238f6845a5bf57f508a9975bd60c43d81032
parent239bc1b756df1618560e08eea3f4906dc31cd9d5
winex11.drv: Do not call desktop get_current_mode() from UpdateDisplayDevices.

We don't need to set the win32u current mode when we are in virtual
desktop mode, and, additionally, skipping this avoids a deadlock, since
the virtual desktop get_current_mode() implementation recurses into
win32u.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Fixes: 4232312dffe1cd115aa6bfd755f5b7c6a403e3fc
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54781
dlls/winex11.drv/display.c