aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-20 21:15:58 +0100
committeremersion <contact@emersion.fr>2017-11-20 21:15:58 +0100
commit151901123f0f59d0a05b5494e91d5425c99e6b1a (patch)
tree3c4f5cdb49dee27867fca017a89ff54262011822 /xwayland
parent016744ef4d2692c800d613e40fbf5d6267fab2e9 (diff)
parentbecd75fd2ebd31fec9fdcf9cc2f37c5957d31b37 (diff)
Merge branch 'master' into refactor-wlr-list
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c5
-rw-r--r--xwayland/xwm.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 3f972e56..fa0522d6 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 */
@@ -640,8 +641,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);
}
diff --git a/xwayland/xwm.h b/xwayland/xwm.h
index 547cd5eb..c350b6e2 100644
--- a/xwayland/xwm.h
+++ b/xwayland/xwm.h
@@ -30,6 +30,7 @@ enum atom_name {
_NET_WM_STATE_FULLSCREEN,
_NET_WM_STATE_MAXIMIZED_VERT,
_NET_WM_STATE_MAXIMIZED_HORZ,
+ WM_STATE,
ATOM_LAST,
};