aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-17 00:04:33 +0200
committeremersion <contact@emersion.fr>2017-10-17 00:04:33 +0200
commit786f4bdd4d79f5aaa9fd4f7872553a5f3afe98f9 (patch)
treeba945741f8bc360b4ccdfabb894fe1ef1c683dfe
parent08720db01db302246c9e0a15c0cde7120af3e1d8 (diff)
Disable hardware cursors for now
-rw-r--r--types/wlr_output.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 5f3820bc..d3b37d65 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -257,7 +257,15 @@ void wlr_output_set_cursor_surface(struct wlr_output *output,
output->cursor.surface = NULL;
}
- output->cursor.is_sw = output->impl->set_cursor == NULL;
+ // Disable hardware cursor
+ // TODO: support hardware cursors
+ output->cursor.is_sw = true;
+ if (output->impl->set_cursor) {
+ output->impl->set_cursor(output, NULL, 0, 0, 0, hotspot_x, hotspot_y,
+ true);
+ }
+
+ //output->cursor.is_sw = output->impl->set_cursor == NULL;
output->cursor.surface = surface;
if (surface != NULL) {