mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
Merge pull request #435 from acrisci/bug/xwm-wm-state
xwm: properly send WM_STATE
This commit is contained in:
commit
e0bdc16a10
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue