aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-14 13:24:29 +0200
committeremersion <contact@emersion.fr>2017-10-14 13:24:29 +0200
commit6dc0517bb163b4ee38602d8955b9994e5928d739 (patch)
tree10057c87968bc3695afdc1d7b3f509ecf5aab34e
parentdd5114a5143b1594340dcbd91279c325f1c5e776 (diff)
Fix software cursor when setting committed cursor surface
-rw-r--r--types/wlr_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index f47896d5..0026678e 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -179,8 +179,7 @@ static inline int64_t timespec_to_msec(const struct timespec *a) {
static void commit_cursor_surface(struct wlr_output *output,
struct wlr_surface *surface) {
- if (!output->impl->set_cursor) {
- output->cursor.is_sw = true;
+ if (output->cursor.is_sw) {
return;
}
@@ -258,6 +257,7 @@ void wlr_output_set_cursor_surface(struct wlr_output *output,
output->cursor.surface = NULL;
}
+ output->cursor.is_sw = output->impl->set_cursor == NULL;
output->cursor.surface = surface;
if (surface != NULL) {