From 11568a73ba8b60f9a60b469e30842bc78f533872 Mon Sep 17 00:00:00 2001 From: Matt Roper Date: Mon, 29 Aug 2011 15:59:37 -0700 Subject: [PATCH] Turn off hardware cursor when screen fade begins. The compositor was never actually calling the output backend to turn off the hardware cursor when the screen begins fading. This would result in a stuck hardware cursor and movable software cursor for the duration of the fade/unfade. Signed-off-by: Matt Roper --- compositor/compositor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compositor/compositor.c b/compositor/compositor.c index 8d54a29..07de2c5 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -812,8 +812,10 @@ wlsc_output_set_cursor(struct wlsc_output *output, prior_was_hardware = wl_list_empty(&device->sprite->link); if (force_sw || output->set_hardware_cursor(output, device) < 0) { - if (prior_was_hardware) + if (prior_was_hardware) { wlsc_surface_damage(device->sprite); + output->set_hardware_cursor(output, NULL); + } use_hardware_cursor = 0; } else if (!prior_was_hardware) { wlsc_surface_damage_below(device->sprite); -- 2.7.4