compositor: Set output for cursor surface so damage_below works
This commit is contained in:
parent
db0fa54b5a
commit
2584cb5890
@ -871,10 +871,13 @@ wlsc_output_set_cursor(struct wlsc_output *output,
|
||||
|
||||
/* Remove always to be on top. */
|
||||
wl_list_remove(&device->sprite->link);
|
||||
if (!use_hardware_cursor && ec->focus)
|
||||
if (!use_hardware_cursor && ec->focus) {
|
||||
wl_list_insert(&ec->surface_list, &device->sprite->link);
|
||||
else
|
||||
device->sprite->output = output;
|
||||
} else {
|
||||
wl_list_init(&device->sprite->link);
|
||||
device->sprite->output = NULL;
|
||||
}
|
||||
|
||||
out:
|
||||
pixman_region32_fini(&cursor_region);
|
||||
|
Loading…
Reference in New Issue
Block a user