xwayland: add set_parent event

This commit is contained in:
emersion 2017-09-29 20:22:35 +02:00
parent d8c86431e0
commit 7c9f3240f6
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 3 additions and 0 deletions

View file

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

View file

@ -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.set_class);
wl_signal_init(&surface->events.set_title);
wl_signal_init(&surface->events.set_parent);
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);
wl_signal_emit(&surface->events.set_parent, surface);
}
static void read_surface_property(struct wlr_xwm *xwm,