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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2725>
This commit is contained in:
msizanoen1 2022-11-27 22:40:36 +07:00 committed by Marge Bot
parent 943fcc7c1a
commit dbf3584a9b

View File

@ -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
{