aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwm.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-20 14:35:31 +0100
committeremersion <contact@emersion.fr>2017-11-20 14:35:31 +0100
commit1d08d317096a80f96d03cd67303381bdedaaac2a (patch)
tree0c2115f562fe6b5f6a609b561a05dbb9dddda10c /xwayland/xwm.c
parent272e0858e49bf341b363fdbe59a5f669ba678ce2 (diff)
parentc3e0fbdb8f0cb16d99e70d14bb5cef6bd48d4591 (diff)
Merge branch 'master' into laggy-move-resize
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r--xwayland/xwm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index dff9fac2..36722591 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -42,6 +42,7 @@ const char *atom_map[ATOM_LAST] = {
"_NET_WM_STATE_FULLSCREEN",
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ",
+ "WM_STATE",
};
/* General helpers */
@@ -641,8 +642,8 @@ static void xsurface_set_wm_state(struct wlr_xwayland_surface *xsurface,
xcb_change_property(xwm->xcb_conn,
XCB_PROP_MODE_REPLACE,
xsurface->window_id,
- xwm->atoms[NET_WM_STATE],
- xwm->atoms[NET_WM_STATE],
+ xwm->atoms[WM_STATE],
+ xwm->atoms[WM_STATE],
32, // format
2, property);
}