Add multiple buffering to xwl_window
Compare changes
Files
2- 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. Add double buffering to the xwl_window and alternate between buffers, to leave the Wayland buffer untouched between frame callbacks and avoid stuttering or tearing issues. !316 Closes: #835 Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com>
+ 106
− 1
@@ -547,6 +547,107 @@ static const struct wl_shell_surface_listener shell_surface_listener = {
@@ -855,6 +956,7 @@ ensure_surface_for_window(WindowPtr window)
@@ -954,10 +1056,12 @@ xwl_unrealize_window(WindowPtr window)
@@ -1007,6 +1111,7 @@ xwl_resize_window(WindowPtr window,
@@ -1078,7 +1183,7 @@ xwl_window_post_damage(struct xwl_window *xwl_window)