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
This commit is contained in:
Michel Dänzer 2024-01-18 16:11:45 +01:00 committed by Michel Dänzer
parent e391d53076
commit f50ed265cf

View File

@ -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 */