[PATCH weston 3/8] compositor-drm: Don’t try to set the cursor anymore once we know it’s broken

Emmanuel Gil Peyrot emmanuel.peyrot at collabora.com
Mon May 2 21:40:12 UTC 2016


Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot at collabora.com>
---
 src/compositor-drm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index ea118fa..c11562f 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -671,7 +671,8 @@ drm_output_repaint(struct weston_output *output_base,
 
 	output->page_flip_pending = 1;
 
-	drm_output_set_cursor(output);
+	if (!backend->cursors_are_broken)
+		drm_output_set_cursor(output);
 
 	/*
 	 * Now, update all the sprite surfaces
-- 
2.8.2



More information about the wayland-devel mailing list