aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-24 12:48:57 +0200
committerGitHub <noreply@github.com>2018-09-24 12:48:57 +0200
commit5b687b4a9676448148aa8da1917b849857aae78f (patch)
treec56a656b35fc28cbfd6500732432a51ddf2b04b9
parentf5658c2ca2b46b876ffeeaaff3c43d7073536244 (diff)
parent44613c0fa601549ffb5135aa44bdcbf002ecdbd6 (diff)
Merge pull request #1260 from RyanDwyer/xwayland-set-decorations
xwayland: Introduce set_decorations event
-rw-r--r--include/wlr/xwayland.h1
-rw-r--r--xwayland/xwm.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h
index eb5d6985..8247aa15 100644
--- a/include/wlr/xwayland.h
+++ b/include/wlr/xwayland.h
@@ -163,6 +163,7 @@ struct wlr_xwayland_surface {
struct wl_signal set_pid;
struct wl_signal set_window_type;
struct wl_signal set_hints;
+ struct wl_signal set_decorations;
struct wl_signal set_override_redirect;
struct wl_signal ping_timeout;
} events;
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 9c803543..c05c650d 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -159,6 +159,7 @@ static struct wlr_xwayland_surface *xwayland_surface_create(
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_decorations);
wl_signal_init(&surface->events.set_override_redirect);
wl_signal_init(&surface->events.ping_timeout);
@@ -594,6 +595,7 @@ static void read_surface_motif_hints(struct wlr_xwm *xwm,
WLR_XWAYLAND_SURFACE_DECORATIONS_NO_TITLE;
}
}
+ wlr_signal_emit_safe(&xsurface->events.set_decorations, xsurface);
}
wlr_log(WLR_DEBUG, "MOTIF_WM_HINTS (%d)", reply->value_len);