xserver/hw/xwayland
Olivier Fourdan a797776ff2 xwayland: Do not resize when running fullscreen
When running fullscreen, if an X11 client has changed the resolution,
Xwayland is using a viewport to emulate the expected resolution.

When changing focus, the Wayland compositor will send a configure event
with the actual surface size, not the size of the emulated XRandR
resolution.

As a result, changing focus while XRandR emulation (and hence the
viewport) is active in Xwayland will revert the resolution to the actual
output size, defeating the XRandR emulation.

To avoid that issue, only change the size when not running fullscreen.

Fixes: 53b6d4db7 - xwayland: Apply root toplevel configure dimensions
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Kenny Levinsen <kl@kl.wtf>
2023-11-16 11:16:26 +01:00
..
desktop xwayland: set the app_id and install a desktop launcher 2022-06-30 17:53:01 +02:00
man Xwayland: document new "glamor" option 2023-11-02 08:18:00 +00:00
.gitignore xwayland: Add wp_viewport wayland extension support 2019-10-12 12:19:14 +02:00
drm.xml wayland: Sync drm.xml with Mesa 2017-07-05 10:13:04 -04:00
meson.build glamor: Lift the GLX EGL backend from Xwayland 2023-11-07 17:59:24 +03:00
xwayland-cursor.c xwayland: Fix cursor color 2022-02-11 10:33:10 +01:00
xwayland-cursor.h xwayland: Add xwl_cursor_clear_frame_cb() 2021-10-25 12:05:42 +00:00
xwayland-cvt.c xwayland: Keep the CVT timings for non-standard modes 2023-05-15 10:33:21 +02:00
xwayland-cvt.h xwayland: Move Xwayland CVT declaration 2019-12-20 16:19:01 +01:00
xwayland-drm-lease.c xwayland: Clean up drm lease when terminating. #946 2023-07-17 08:25:39 +00:00
xwayland-drm-lease.h Xwayland: implement drm-lease-v1 2021-12-07 10:02:29 +00:00
xwayland-glamor-eglstream.c hw/Xwayland: add xwl_glamor_mode_flags enum 2023-11-02 08:18:00 +00:00
xwayland-glamor-gbm.c Xwayland: add "glamor" command line option 2023-11-02 08:18:00 +00:00
xwayland-glamor-xv.c xwayland: Cleanup and remove `xwayland.h` 2019-12-20 16:19:01 +01:00
xwayland-glamor.c glamor: Lift the GLX EGL backend from Xwayland 2023-11-07 17:59:24 +03:00
xwayland-glamor.h Xwayland: add "glamor" command line option 2023-11-02 08:18:00 +00:00
xwayland-input.c xwayland: Fallback to plain XTEST if EI does not work 2023-06-26 13:19:19 +02:00
xwayland-input.h xwayland: hook up wl_pointer.axis_v120 events 2023-01-18 13:33:54 +10:00
xwayland-output.c xwayland: Update the fullscreen window on output change 2023-11-16 11:14:04 +01:00
xwayland-output.h xwayland: Make xwl_randr_add_modes_fixed() public API 2023-07-18 12:25:26 +02:00
xwayland-pixmap.c xwayland: Rename xwl_pixmap_cb → xwl_buffer_release_cb 2020-07-07 13:47:11 +00:00
xwayland-pixmap.h xwayland: Rename xwl_pixmap_cb → xwl_buffer_release_cb 2020-07-07 13:47:11 +00:00
xwayland-present.c xwayland/present: Handle NULL window_priv in xwl_present_cleanup 2023-09-26 14:08:08 +00:00
xwayland-present.h xwayland: add support for wp-tearing-control-v1 2023-06-19 12:19:35 +02:00
xwayland-screen.c Xwayland: add "glamor" command line option 2023-11-02 08:18:00 +00:00
xwayland-screen.h hw/Xwayland: add xwl_glamor_mode_flags enum 2023-11-02 08:18:00 +00:00
xwayland-shm.c xwayland/shm: Avoid integer overflow on large pixmaps 2021-10-05 10:00:02 +00:00
xwayland-shm.h xwayland: Move SHM declarations to their own header 2019-12-20 16:19:01 +01:00
xwayland-types.h xwayland: Add xwl_output to the Xwayland types 2023-11-16 11:14:04 +01:00
xwayland-vidmode.c xwayland: add a fixed geometry size for rootful 2022-06-30 17:52:22 +02:00
xwayland-vidmode.h xwayland: Move Xwayland vidmode declaration 2019-12-20 16:19:01 +01:00
xwayland-window-buffers.c xwayland: Try the Xwayland glamor hook to create pixmaps 2023-04-03 11:46:15 +02:00
xwayland-window-buffers.h xwayland: Cleanup and remove `xwayland.h` 2019-12-20 16:19:01 +01:00
xwayland-window.c xwayland: Do not resize when running fullscreen 2023-11-16 11:16:26 +01:00
xwayland-window.h xwayland: Add a helper function to update fullscreen 2023-11-16 11:14:04 +01:00
xwayland-xtest.c xwayland: Cancel the EI disconnect timer when freed 2023-10-11 11:05:08 +02:00
xwayland-xtest.h xwayland: Fallback to plain XTEST if EI does not work 2023-06-26 13:19:19 +02:00
xwayland.c Xwayland: add "glamor" command line option 2023-11-02 08:18:00 +00:00