Commit 85a6fd11 authored by Roman Gilg's avatar Roman Gilg Committed by Michel Dänzer

xwayland: Damage surface in surface-relative coordinates

In 9141196d positional coordinates were added to the damage call of pixmap
flips. The damage box coordinates are in screen space though and we need
to convert them first to surface-relative ones by substracting the origin
of the window.
Signed-off-by: Roman Gilg's avatarRoman Gilg <subdiff@gmail.com>
parent ed624544
Pipeline #176510 passed with stages
in 6 minutes and 23 seconds
......@@ -497,7 +497,8 @@ xwl_present_flip(WindowPtr present_window,
xwl_present_reset_timer(xwl_present_window);
xwl_surface_damage(xwl_window->xwl_screen, xwl_window->surface,
damage_box->x1, damage_box->y1,
damage_box->x1 - present_window->drawable.x,
damage_box->y1 - present_window->drawable.y,
damage_box->x2 - damage_box->x1,
damage_box->y2 - damage_box->y1);
......
Markdown is supported
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