diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c index dca556734..95e65af64 100644 --- a/hw/xwayland/xwayland-glamor.c +++ b/hw/xwayland/xwayland-glamor.c @@ -126,17 +126,6 @@ xwl_glamor_has_wl_interfaces(struct xwl_screen *xwl_screen, return TRUE; } -Bool -xwl_glamor_allow_commits(struct xwl_window *xwl_window) -{ - struct xwl_screen *xwl_screen = xwl_window->xwl_screen; - - if (xwl_screen->egl_backend->allow_commits) - return xwl_screen->egl_backend->allow_commits(xwl_window); - else - return TRUE; -} - static void xwl_avoid_implicit_redirect(WindowPtr window) { diff --git a/hw/xwayland/xwayland-glamor.h b/hw/xwayland/xwayland-glamor.h index 70d3a8416..cf6e332eb 100644 --- a/hw/xwayland/xwayland-glamor.h +++ b/hw/xwayland/xwayland-glamor.h @@ -132,7 +132,6 @@ void xwl_glamor_init_wl_registry(struct xwl_screen *xwl_screen, uint32_t version); Bool xwl_glamor_has_wl_interfaces(struct xwl_screen *xwl_screen, struct xwl_egl_backend *xwl_egl_backend); -Bool xwl_glamor_allow_commits(struct xwl_window *xwl_window); void xwl_glamor_egl_make_current(struct xwl_screen *xwl_screen); Bool xwl_glamor_needs_buffer_flush(struct xwl_screen *xwl_screen); Bool xwl_glamor_needs_n_buffering(struct xwl_screen *xwl_screen); diff --git a/hw/xwayland/xwayland-screen.c b/hw/xwayland/xwayland-screen.c index 9dcc5d937..e62923643 100644 --- a/hw/xwayland/xwayland-screen.c +++ b/hw/xwayland/xwayland-screen.c @@ -407,11 +407,6 @@ xwl_screen_post_damage(struct xwl_screen *xwl_screen) if (!xwl_window->allow_commits) continue; -#ifdef XWL_HAS_GLAMOR - if (xwl_screen->glamor && !xwl_glamor_allow_commits(xwl_window)) - continue; -#endif - xwl_window_post_damage(xwl_window); xorg_list_del(&xwl_window->link_damage); xorg_list_append(&xwl_window->link_damage, &commit_window_list);