11 Jan
2024
11 Jan
'24
10:21 a.m.
Rémi Bernon (@rbernon) commented about dlls/winex11.drv/desktop.c:
{ static RECT old_virtual_rect;
- RECT primary_rect, virtual_rect; + RECT virtual_rect = NtUserGetVirtualScreenRect(); HWND hwnd = NtUserGetDesktopWindow(); - INT width, height; - - virtual_rect = NtUserGetVirtualScreenRect(); - primary_rect = NtUserGetPrimaryMonitorRect(); - width = primary_rect.right; - height = primary_rect.bottom;
- TRACE( "desktop %p change to (%dx%d)\n", hwnd, width, height ); I would keep this trace, and maybe add another indicating the desktop is being made / unmade fullscreen.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4823#note_57147