[PATCH 1/6] winex11.drv: Allow reporting a virtual desktop mode with the same width or height as the current mode.

Zhiyi Zhang zzhang at codeweavers.com
Wed Jul 22 02:24:14 CDT 2020


Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
 dlls/winex11.drv/desktop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c
index 5a9e0f59ae8..b5894d5e028 100644
--- a/dlls/winex11.drv/desktop.c
+++ b/dlls/winex11.drv/desktop.c
@@ -108,7 +108,7 @@ static void make_modes(void)
             }
         }
     }
-    if ((max_width != screen_width) && (max_height != screen_height))
+    if ((max_width != screen_width) || (max_height != screen_height))
     {
         /* root window size (if different from desktop window) */
         X11DRV_Settings_AddOneMode(max_width, max_height, 0, 60);
-- 
2.25.1




More information about the wine-devel mailing list