input: Use surface/view helpers to map
Use the helpers to map a weston_surface and weston_view, rather than manually manipulating the internals. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
1f9e0ce9ad
commit
7f62fe817a
@ -3517,11 +3517,9 @@ pointer_cursor_surface_committed(struct weston_surface *es,
|
||||
empty_region(&es->input);
|
||||
|
||||
if (!weston_surface_is_mapped(es)) {
|
||||
weston_layer_entry_insert(&es->compositor->cursor_layer.view_list,
|
||||
&pointer->sprite->layer_link);
|
||||
weston_view_update_transform(pointer->sprite);
|
||||
weston_surface_map(es);
|
||||
pointer->sprite->is_mapped = true;
|
||||
weston_view_move_to_layer(pointer->sprite,
|
||||
&es->compositor->cursor_layer.view_list);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user