From dbf3584a9bee346e85333bf59fe8ccee6c428c8d Mon Sep 17 00:00:00 2001 From: msizanoen1 Date: Sun, 27 Nov 2022 22:40:36 +0700 Subject: [PATCH] window/xwayland: Handle _NET_WM_FULLSCREEN_MONITORS for XRandR emulation Handle a specific case of _NET_WM_FULLSCREEN_MONITORS used by GLFW to make XRandR emulation work with it. Part-of: --- src/core/constraints.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/constraints.c b/src/core/constraints.c index d9e4c75b5..d9aa99392 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -467,6 +467,11 @@ setup_constraint_info (MetaBackend *backend, meta_rectangle_union (&info->entire_monitor, &window->fullscreen_monitors.right->rect, &info->entire_monitor); + if (window->fullscreen_monitors.top == logical_monitor && + window->fullscreen_monitors.bottom == logical_monitor && + window->fullscreen_monitors.left == logical_monitor && + window->fullscreen_monitors.right == logical_monitor) + meta_window_adjust_fullscreen_monitor_rect (window, &info->entire_monitor); } else {