compositor: Set output for cursor surface so damage_below works

This commit is contained in:
Kristian Høgsberg 2011-11-22 19:47:57 -05:00
parent db0fa54b5a
commit 2584cb5890

View File

@ -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);