From 0672d9cb52b55e582866a2bd3238d806cd241352 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sun, 19 Nov 2017 17:55:02 -0500 Subject: bug: properly send WM_STATE --- xwayland/xwm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xwayland/xwm.c') 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); } -- cgit v1.2.3