diff options
Diffstat (limited to 'desktop-shell/input-panel.c')
-rw-r--r-- | desktop-shell/input-panel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-shell/input-panel.c b/desktop-shell/input-panel.c index 7623f6cb..435cd5d6 100644 --- a/desktop-shell/input-panel.c +++ b/desktop-shell/input-panel.c @@ -75,8 +75,8 @@ show_input_panel_surface(struct input_panel_surface *ipsurf) weston_view_set_position(ipsurf->view, x, y); } - wl_list_insert(&shell->input_panel_layer.view_list, - &ipsurf->view->layer_link); + weston_layer_entry_insert(&shell->input_panel_layer.view_list, + &ipsurf->view->layer_link); weston_view_geometry_dirty(ipsurf->view); weston_view_update_transform(ipsurf->view); weston_surface_damage(ipsurf->surface); @@ -135,7 +135,8 @@ hide_input_panels(struct wl_listener *listener, void *data) wl_list_remove(&shell->input_panel_layer.link); wl_list_for_each_safe(view, next, - &shell->input_panel_layer.view_list, layer_link) + &shell->input_panel_layer.view_list.link, + layer_link.link) weston_view_unmap(view); } @@ -355,7 +356,6 @@ bind_input_panel(struct wl_client *client, wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT, "interface object already bound"); - wl_resource_destroy(resource); } void |