Commit 2beefda5 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

xwayland: Move xwl_surface_damage definition to xwayland-screen.c



It was already declared in xwayland-screen.h, and only takes a screen
parameter, no window ones.
Reviewed-by: Olivier Fourdan's avatarOlivier Fourdan <ofourdan@redhat.com>
parent 12af425a
Pipeline #172780 passed with stages
in 4 minutes and 46 seconds
...@@ -513,6 +513,16 @@ xwl_sync_events (struct xwl_screen *xwl_screen) ...@@ -513,6 +513,16 @@ xwl_sync_events (struct xwl_screen *xwl_screen)
xwl_read_events (xwl_screen); xwl_read_events (xwl_screen);
} }
void xwl_surface_damage(struct xwl_screen *xwl_screen,
struct wl_surface *surface,
int32_t x, int32_t y, int32_t width, int32_t height)
{
if (wl_surface_get_version(surface) >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
wl_surface_damage_buffer(surface, x, y, width, height);
else
wl_surface_damage(surface, x, y, width, height);
}
void void
xwl_screen_roundtrip(struct xwl_screen *xwl_screen) xwl_screen_roundtrip(struct xwl_screen *xwl_screen)
{ {
......
...@@ -783,16 +783,6 @@ xwl_destroy_window(WindowPtr window) ...@@ -783,16 +783,6 @@ xwl_destroy_window(WindowPtr window)
return ret; return ret;
} }
void xwl_surface_damage(struct xwl_screen *xwl_screen,
struct wl_surface *surface,
int32_t x, int32_t y, int32_t width, int32_t height)
{
if (wl_surface_get_version(surface) >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
wl_surface_damage_buffer(surface, x, y, width, height);
else
wl_surface_damage(surface, x, y, width, height);
}
void void
xwl_window_post_damage(struct xwl_window *xwl_window) xwl_window_post_damage(struct xwl_window *xwl_window)
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment