Listen to cursor surface commit & destroy events

This commit is contained in:
emersion 2017-10-08 23:11:59 +02:00
parent 17354b630a
commit 8a77d1b6a2
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 72 additions and 27 deletions

View file

@ -288,11 +288,8 @@ static void handle_request_set_cursor(struct wl_listener *listener,
struct roots_output *output;
wl_list_for_each(output, &input->server->desktop->outputs, link) {
if (!wlr_output_set_cursor_surface(output->wlr_output,
event->surface, event->hotspot_x, event->hotspot_y)) {
wlr_log(L_DEBUG, "Failed to set hardware cursor");
return;
}
wlr_output_set_cursor_surface(output->wlr_output, event->surface,
event->hotspot_x, event->hotspot_y);
}
}