Handle map/unmap events in xdg-shell-v6

This commit is contained in:
emersion 2018-03-30 17:43:43 -04:00
parent 3a68c012a9
commit 139f80b0f0
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 37 additions and 13 deletions

View file

@ -127,7 +127,6 @@ static void handle_unmap(struct wl_listener *listener, void *data) {
}
static void handle_map(struct wl_listener *listener, void *data) {
// TODO put the view back into the tree
struct sway_xwayland_surface *sway_surface =
wl_container_of(listener, sway_surface, map);
struct wlr_xwayland_surface *xsurface = data;
@ -193,7 +192,6 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
sway_view->iface.close = close_view;
sway_view->wlr_xwayland_surface = xsurface;
sway_view->sway_xwayland_surface = sway_surface;
sway_view->surface = xsurface->surface;
sway_surface->view = sway_view;
wl_list_init(&sway_view->unmanaged_view_link);