aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-05 11:47:58 +0200
committeremersion <contact@emersion.fr>2017-10-05 19:10:23 +0200
commitef5914bdb61e788cf3b62378c4e7a14d8bf0430f (patch)
tree9f4528a96dc9ccb7d8cc65c6ebe2cca2a876005a /xwayland
parent0c22ad09a7f4673b533c70f5a9a6bfcb523eba3a (diff)
xwayland: add wlr_xwayland_surface->motif_hints
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 7030442b..f97f0a8e 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -286,7 +286,13 @@ static void read_surface_normal_hints(struct wlr_xwm *xwm,
static void read_surface_motif_hints(struct wlr_xwm *xwm,
struct wlr_xwayland_surface *surface, xcb_get_property_reply_t *reply) {
- // TODO
+ if (reply->value_len < 5) {
+ return;
+ }
+
+ uint32_t *motif_hints = xcb_get_property_value(reply);
+ memcpy(surface->motif_hints, motif_hints, sizeof(surface->motif_hints));
+
wlr_log(L_DEBUG, "MOTIF_WM_HINTS (%d)", reply->value_len);
}