mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Ensure the view signals are initialized early
This prevents a crash observed by the scaled-icon-buffer listening to the `view->events.set_icons` signal before it is initialized. For this to happen, the application needs to use the kde decoration protocol and set it on the xdg_surface before creating the xdg_toplevel. Fixes: #2798
This commit is contained in:
parent
6cb34f994c
commit
4d79f0057f
2 changed files with 3 additions and 2 deletions
|
|
@ -965,6 +965,7 @@ xwayland_view_create(struct server *server,
|
|||
view->server = server;
|
||||
view->type = LAB_XWAYLAND_VIEW;
|
||||
view->impl = &xwayland_view_impl;
|
||||
view_init(view);
|
||||
|
||||
/*
|
||||
* Set two-way view <-> xsurface association. Usually the association
|
||||
|
|
@ -1001,7 +1002,6 @@ xwayland_view_create(struct server *server,
|
|||
CONNECT_SIGNAL(xsurface, xwayland_view, focus_in);
|
||||
CONNECT_SIGNAL(xsurface, xwayland_view, map_request);
|
||||
|
||||
view_init(view);
|
||||
wl_list_insert(&view->server->views, &view->link);
|
||||
|
||||
if (xsurface->surface) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue