mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Listen to cursor surface commit & destroy events
This commit is contained in:
parent
17354b630a
commit
8a77d1b6a2
3 changed files with 72 additions and 27 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue