mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland.c: add view to list in new/destroy
This commit is contained in:
parent
8846998b75
commit
b8fd4fed53
1 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,6 @@ static void handle_unmap(struct wl_listener *listener, void *data)
|
|||
static void handle_destroy(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct view *view = wl_container_of(listener, view, destroy);
|
||||
if (view->been_mapped)
|
||||
wl_list_remove(&view->link);
|
||||
wl_list_remove(&view->map.link);
|
||||
wl_list_remove(&view->unmap.link);
|
||||
|
|
@ -75,7 +74,6 @@ static void map(struct view *view)
|
|||
if (!view->been_mapped) {
|
||||
view->show_server_side_deco = want_ssd(view);
|
||||
view_init_position(view);
|
||||
wl_list_insert(&view->server->views, &view->link);
|
||||
}
|
||||
view->been_mapped = true;
|
||||
|
||||
|
|
@ -132,4 +130,6 @@ void xwayland_surface_new(struct wl_listener *listener, void *data)
|
|||
view->request_configure.notify = handle_request_configure;
|
||||
wl_signal_add(&xsurface->events.request_configure,
|
||||
&view->request_configure);
|
||||
|
||||
wl_list_insert(&view->server->views, &view->link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue