Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

xwm: properly send WM_STATE #435

Merged
merged 1 commit into from
Nov 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions xwayland/xwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions xwayland/xwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down