From f50ed265cf0e78c9c8aefe8dd7f82a750cb4e1d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 18 Jan 2024 16:11:45 +0100 Subject: [PATCH] xwayland: Initialize Present extension support also with rootful Multiple benefits, in particular: * Fullscreen windows can hit the page flip path * X client presentation is properly synchronized to the Wayland compositor refresh cycle via frame events --- hw/xwayland/xwayland-screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index 03ee4e668..989c84e2d 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -1016,7 +1016,7 @@ xwl_screen_init(ScreenPtr pScreen, int argc, char **argv) } } #ifdef GLAMOR_HAS_GBM - if (xwl_screen->glamor && xwl_screen->rootless) + if (xwl_screen->glamor) xwl_screen->present = xwl_present_init(pScreen); #endif /* GLAMOR_HAS_GBM */ #endif /* XWL_HAS_GLAMOR */