Add multiple buffering to xwl_window
Compare changes
- Olivier Fourdan authored
Xwayland takes care of not attaching a new buffer if a frame callback is pending. Yet, the existing buffer (which was previously attached) may still be updated from the X11 side, causing unexpected visual glitches to the buffer. Request a detached buffer when updating damages and free the buffer when released so that the buffer sent to the compositor always remains untouched until released. !316 Closes: #835 Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com>
+ 17
− 2
@@ -1065,6 +1065,17 @@ void xwl_surface_damage(struct xwl_screen *xwl_screen,
@@ -1073,6 +1084,7 @@ xwl_window_post_damage(struct xwl_window *xwl_window)
@@ -1083,8 +1095,8 @@ xwl_window_post_damage(struct xwl_window *xwl_window)
@@ -1116,6 +1128,9 @@ xwl_window_post_damage(struct xwl_window *xwl_window)