mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-10 04:40:16 +01:00
xwayland: Update the fullscreen window on output change
Make sure to update the fullscreen rootful window configuration whenever
the output setup changes.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Kenny Levinsen <kl@kl.wtf>
(cherry picked from commit 06eb7271a9)
This commit is contained in:
parent
8046b0c222
commit
654fca9c31
1 changed files with 10 additions and 0 deletions
|
|
@ -601,6 +601,7 @@ static void
|
|||
apply_output_change(struct xwl_output *xwl_output)
|
||||
{
|
||||
struct xwl_screen *xwl_screen = xwl_output->xwl_screen;
|
||||
struct xwl_window *xwl_window;
|
||||
struct xwl_output *it;
|
||||
int mode_width, mode_height, count;
|
||||
int width = 0, height = 0, has_this_output = 0;
|
||||
|
|
@ -658,6 +659,15 @@ apply_output_change(struct xwl_output *xwl_output)
|
|||
update_screen_size(xwl_screen, width, height);
|
||||
else
|
||||
RRTellChanged(xwl_screen->screen);
|
||||
|
||||
/* If running rootful and fullscreen, make sure to match the new setup */
|
||||
if (xwl_screen->fullscreen) {
|
||||
/* The root window may not yet be created */
|
||||
if (xwl_screen->screen->root) {
|
||||
xwl_window = xwl_window_get(xwl_screen->screen->root);
|
||||
xwl_window_rootful_update_fullscreen(xwl_window, xwl_output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue