aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwm.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-07-19 21:07:11 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-07-19 21:07:11 +1000
commitdc58c1356dbe1917b893108943fd050d0f34f03c (patch)
tree22fada7cde722ae32b978864950131401948b85b /xwayland/xwm.c
parent83809cb7d24b9a9ea118476f7a9561e1e826a5b0 (diff)
Introduce set_hints event for xwayland
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r--xwayland/xwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 09428bd3..6632b5fc 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -154,6 +154,7 @@ static struct wlr_xwayland_surface *xwayland_surface_create(
wl_signal_init(&surface->events.set_parent);
wl_signal_init(&surface->events.set_pid);
wl_signal_init(&surface->events.set_window_type);
+ wl_signal_init(&surface->events.set_hints);
wl_signal_init(&surface->events.set_override_redirect);
wl_signal_init(&surface->events.ping_timeout);
@@ -492,6 +493,7 @@ static void read_surface_hints(struct wlr_xwm *xwm,
xsurface->hints_urgency = xcb_icccm_wm_hints_get_urgency(&hints);
wlr_log(WLR_DEBUG, "WM_HINTS (%d)", reply->value_len);
+ wlr_signal_emit_safe(&xsurface->events.set_hints, xsurface);
}
#else
static void read_surface_hints(struct wlr_xwm *xwm,