diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-21 15:09:33 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-21 15:09:33 -0500 |
commit | 7474f005917fbb98cad08e8078c1da0c27742174 (patch) | |
tree | 276559dbe3c24ecc6626258132666ae736427a36 /xwayland | |
parent | 61bd79200cc3892b143b7321886db77e97c9f69f (diff) | |
parent | 79f2c8719364529056229b99bf9e49a994699fe7 (diff) |
Merge branch 'master' into decorations
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 dc349ab2..aada6501 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; + } } } |