aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-19 18:02:08 -0500
committerGitHub <noreply@github.com>2017-11-19 18:02:08 -0500
commite0bdc16a10449d3bdf4517b5a85a9d55085d97c7 (patch)
tree96f562261e5dc835f92c2d8100bb96ddfbc72d44
parentfae8d6289a470b8abcf36a5f4b0030ef504caf0b (diff)
parent0672d9cb52b55e582866a2bd3238d806cd241352 (diff)
Merge pull request #435 from acrisci/bug/xwm-wm-state
xwm: properly send WM_STATE
-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 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);
}
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,
};