xwayland: Check for the screen output name for fullscreen

When putting the (root) window fullscreen, first search for an output
with the specified name, if any.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Acked-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
Olivier Fourdan 2023-12-04 16:28:31 +01:00 committed by Olivier Fourdan
parent 2e317e0242
commit 87ca6dcb43

View File

@ -319,8 +319,11 @@ xwl_window_get_output(struct xwl_window *xwl_window)
struct xwl_screen *xwl_screen = xwl_window->xwl_screen;
struct xwl_output *xwl_output;
xwl_output = xwl_output_from_wl_output(xwl_screen, xwl_window->wl_output);
xwl_output = xwl_output_get_output_from_name(xwl_screen, xwl_screen->output_name);
if (xwl_output)
return xwl_output;
xwl_output = xwl_output_from_wl_output(xwl_screen, xwl_window->wl_output);
if (xwl_output)
return xwl_output;