From ed575eee8106ecf9f93a0d8ce9fb912aac0f8fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 14 Jun 2024 18:30:09 +0200 Subject: [PATCH] xwayland: Drop pixmap parameter from xwl_present_maybe_redirect_window Never used. Part-of: --- hw/xwayland/xwayland-glamor.c | 2 +- hw/xwayland/xwayland-present.c | 2 +- hw/xwayland/xwayland-present.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c index 604658284..69e31b43f 100644 --- a/hw/xwayland/xwayland-glamor.c +++ b/hw/xwayland/xwayland-glamor.c @@ -98,7 +98,7 @@ xwl_glamor_check_flip(WindowPtr present_window, PixmapPtr pixmap) if (pixmap->drawable.depth == 32) return FALSE; - return xwl_present_maybe_redirect_window(present_window, pixmap); + return xwl_present_maybe_redirect_window(present_window); } return TRUE; diff --git a/hw/xwayland/xwayland-present.c b/hw/xwayland/xwayland-present.c index 4d2410568..1e66f586c 100644 --- a/hw/xwayland/xwayland-present.c +++ b/hw/xwayland/xwayland-present.c @@ -1284,7 +1284,7 @@ xwl_present_unrealize_window(struct xwl_present_window *xwl_present_window) } Bool -xwl_present_maybe_redirect_window(WindowPtr window, PixmapPtr pixmap) +xwl_present_maybe_redirect_window(WindowPtr window) { struct xwl_present_window *xwl_present_window = xwl_present_window_get_priv(window); struct xwl_window *xwl_window = xwl_window_from_window(window); diff --git a/hw/xwayland/xwayland-present.h b/hw/xwayland/xwayland-present.h index 808e54182..d399914d9 100644 --- a/hw/xwayland/xwayland-present.h +++ b/hw/xwayland/xwayland-present.h @@ -81,7 +81,7 @@ void xwl_present_frame_callback(struct xwl_present_window *xwl_present_window); Bool xwl_present_init(ScreenPtr screen); void xwl_present_cleanup(WindowPtr window); void xwl_present_unrealize_window(struct xwl_present_window *xwl_present_window); -Bool xwl_present_maybe_redirect_window(WindowPtr window, PixmapPtr pixmap); +Bool xwl_present_maybe_redirect_window(WindowPtr window); Bool xwl_present_maybe_unredirect_window(WindowPtr window); #endif /* XWAYLAND_PRESENT_H */