Chase wlroots: Stop using wlr_xwayland_surface event data

Follow-up from b816c16701
Chase wlroots: Stop using wlr_xwayland_surface event data

Chases: 27edd024f83892f4af9c5084d47b73f26966aaf1
xwayland: pass NULL as event data
This commit is contained in:
Consolatis 2023-09-29 04:50:47 +02:00
parent 869ed069a5
commit d503370a77

View file

@ -153,11 +153,12 @@ static void
unmanaged_handle_request_activate(struct wl_listener *listener, void *data)
{
wlr_log(WLR_DEBUG, "handle unmanaged request_activate");
struct wlr_xwayland_surface *xsurface = data;
struct xwayland_unmanaged *unmanaged =
wl_container_of(listener, unmanaged, request_activate);
struct wlr_xwayland_surface *xsurface = unmanaged->xwayland_surface;
if (!xsurface->mapped) {
return;
}
struct xwayland_unmanaged *unmanaged = xsurface->data;
struct server *server = unmanaged->server;
struct seat *seat = &server->seat;