diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2023-07-25 16:25:29 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2023-07-27 16:51:37 +0200 |
commit | 5b39ad9041d22a34a0af00d14697d7fe82c4fc26 (patch) | |
tree | 932642f45c5741e79e75967e272120d4444e8fba | |
parent | 9b6b11d194593942bccea2963df8fbac1ae6bdc5 (diff) |
xwayland: Make fullscreen used a fixed size
Similar to commit 94deed272 - " xwayland: Use sensible defaults for
rootful size", mark fullscreen mode as fixed so that the actual monitor
layout is not reflected in the single fullscreen rootful window.
Without this, if "-fullscreen" is used without "-geometry", the XRandR
configuration is taken from the compositor via wl_output/xdg-output and
cannot be changed by the X11 clients.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
(cherry picked from commit 34446a99528a9c2ee1cc5e83118e5d0c58795b31)
-rw-r--r-- | hw/xwayland/xwayland-screen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index 37ee7da0f..6b57fbe9d 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -799,6 +799,7 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv) use_fixed_size = 1; } else if (strcmp(argv[i], "-fullscreen") == 0) { + use_fixed_size = 1; xwl_screen->fullscreen = 1; } else if (strcmp(argv[i], "-host-grab") == 0) { |