winex11.drv: Resize desktop upon display change events.
commitfd6f50c0d3e96947846ca82ed0c9bd79fd8e5b80
authorZhiyi Zhang <zzhang@codeweavers.com>
Mon, 11 May 2020 08:55:27 +0000 (11 16:55 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 12 May 2020 21:10:18 +0000 (12 23:10 +0200)
tree13b7ea2b18bda57a5327b7966d2feeb4200ae478
parent9b9bde8d8240b080ad1cecf1bea6f61c8c6f9c1b
winex11.drv: Resize desktop upon display change events.

Otherwise, Wine still has the old desktop size after a user changed
display resolution using host system utilities.

X11DRV_DisplayDevices_Update() is introduced so that display devices
reinitialization is separated from desktop resizing. Otherwise,
X11DRV_DisplayDevices_Init() would have to be called twice to resize
the desktop with up-to-date primary monitor dimensions, wasting resources.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48441
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winex11.drv/desktop.c
dlls/winex11.drv/display.c
dlls/winex11.drv/window.c
dlls/winex11.drv/x11drv.h
dlls/winex11.drv/xrandr.c
dlls/winex11.drv/xvidmode.c