diff options
author | emersion <contact@emersion.fr> | 2018-01-21 22:16:55 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-21 22:18:06 +0100 |
commit | 59c53e8333cae17210832fb79514c4d0110c7de8 (patch) | |
tree | a2b06676b53f4f7ca075ce728155d0d442f69759 /xwayland | |
parent | f704c3d42b80ad28bfd096e5467a5219c0778e3b (diff) | |
parent | e5fa4d8e8e6e81b0cdac9df2dcb1f589867c98f2 (diff) |
Merge remote-tracking branch 'upstream/master' into output-damage
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index b9536d96..e59c6e66 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -480,12 +480,13 @@ static void read_surface_net_wm_state(struct wlr_xwm *xwm, xsurface->fullscreen = 0; xcb_atom_t *atom = xcb_get_property_value(reply); for (uint32_t i = 0; i < reply->value_len; i++) { - if (atom[i] == xwm->atoms[_NET_WM_STATE_FULLSCREEN]) + if (atom[i] == xwm->atoms[_NET_WM_STATE_FULLSCREEN]) { xsurface->fullscreen = true; - if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_VERT]) + } else if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_VERT]) { xsurface->maximized_vert = true; - if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_HORZ]) + } else if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_HORZ]) { xsurface->maximized_horz = true; + } } } |