Commit 10cabe0b authored by Michel Dänzer's avatar Michel Dänzer Committed by Matt Turner

xwayland: Propagate damage x1/y1 coordinates in xwl_present_flip

This couldn't have worked correctly for non-0 x1/y1.

Noticed by inspection.
Reviewed-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
(cherry picked from commits 9141196d)
(cherry picked fixup from commit 85a6fd11)
parent 3b51978b
......@@ -497,7 +497,9 @@ xwl_present_flip(WindowPtr present_window,
/* Realign timer */
xwl_present_reset_timer(xwl_present_window);
wl_surface_damage(xwl_window->surface, 0, 0,
wl_surface_damage(xwl_window->surface,
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