Do not call the map handler when an xwayland surface is created

master
emersion 7 years ago
parent 517b6dabdf
commit bdaf420ead
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

@ -113,8 +113,6 @@ static struct sway_xwayland_unmanaged *create_unmanaged(
wl_signal_add(&xsurface->events.destroy, &surface->destroy); wl_signal_add(&xsurface->events.destroy, &surface->destroy);
surface->destroy.notify = unmanaged_handle_destroy; surface->destroy.notify = unmanaged_handle_destroy;
unmanaged_handle_map(&surface->map, xsurface);
return surface; return surface;
} }
@ -305,6 +303,4 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) {
wl_signal_add(&xsurface->events.map, &xwayland_view->map); wl_signal_add(&xsurface->events.map, &xwayland_view->map);
xwayland_view->map.notify = handle_map; xwayland_view->map.notify = handle_map;
handle_map(&xwayland_view->map, xsurface);
} }

Loading…
Cancel
Save