mirror of
https://github.com/labwc/labwc.git
synced 2026-03-18 05:33:53 -04:00
xwayland: handle client close request
This commit is contained in:
parent
628e667d4b
commit
72cdd02eb1
2 changed files with 12 additions and 0 deletions
|
|
@ -357,6 +357,7 @@ handle_destroy(struct wl_listener *listener, void *data)
|
|||
wl_list_remove(&xwayland_view->dissociate.link);
|
||||
wl_list_remove(&xwayland_view->request_above.link);
|
||||
wl_list_remove(&xwayland_view->request_activate.link);
|
||||
wl_list_remove(&xwayland_view->request_close.link);
|
||||
wl_list_remove(&xwayland_view->request_configure.link);
|
||||
wl_list_remove(&xwayland_view->set_class.link);
|
||||
wl_list_remove(&xwayland_view->set_decorations.link);
|
||||
|
|
@ -449,6 +450,15 @@ handle_request_activate(struct wl_listener *listener, void *data)
|
|||
desktop_focus_view(view, /*raise*/ true);
|
||||
}
|
||||
|
||||
static void
|
||||
handle_request_close(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct xwayland_view *xwayland_view =
|
||||
wl_container_of(listener, xwayland_view, request_close);
|
||||
|
||||
view_close(&xwayland_view->base);
|
||||
}
|
||||
|
||||
static void
|
||||
handle_request_minimize(struct wl_listener *listener, void *data)
|
||||
{
|
||||
|
|
@ -1050,6 +1060,7 @@ xwayland_view_create(struct server *server,
|
|||
CONNECT_SIGNAL(xsurface, xwayland_view, dissociate);
|
||||
CONNECT_SIGNAL(xsurface, xwayland_view, request_above);
|
||||
CONNECT_SIGNAL(xsurface, xwayland_view, request_activate);
|
||||
CONNECT_SIGNAL(xsurface, xwayland_view, request_close);
|
||||
CONNECT_SIGNAL(xsurface, xwayland_view, request_configure);
|
||||
CONNECT_SIGNAL(xsurface, xwayland_view, set_class);
|
||||
CONNECT_SIGNAL(xsurface, xwayland_view, set_decorations);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue