xwayland: add set_parent event

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

@ -52,6 +52,7 @@ struct wlr_xwayland_surface {
struct wl_signal set_title; struct wl_signal set_title;
struct wl_signal set_class; struct wl_signal set_class;
struct wl_signal set_parent;
} events; } events;
void *data; void *data;

@ -64,6 +64,7 @@ static struct wlr_xwayland_surface *wlr_xwayland_surface_create(
wl_signal_init(&surface->events.request_configure); wl_signal_init(&surface->events.request_configure);
wl_signal_init(&surface->events.set_class); wl_signal_init(&surface->events.set_class);
wl_signal_init(&surface->events.set_title); wl_signal_init(&surface->events.set_title);
wl_signal_init(&surface->events.set_parent);
return surface; return surface;
} }
@ -156,6 +157,7 @@ static void read_surface_parent(struct wlr_xwm *xwm,
} }
wlr_log(L_DEBUG, "XCB_ATOM_WM_TRANSIENT_FOR: %p", xid); wlr_log(L_DEBUG, "XCB_ATOM_WM_TRANSIENT_FOR: %p", xid);
wl_signal_emit(&surface->events.set_parent, surface);
} }
static void read_surface_property(struct wlr_xwm *xwm, static void read_surface_property(struct wlr_xwm *xwm,

Loading…
Cancel
Save