aboutsummaryrefslogtreecommitdiff
path: root/xwayland/xwm.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-21 17:07:25 +0100
committerGitHub <noreply@github.com>2018-01-21 17:07:25 +0100
commit79f2c8719364529056229b99bf9e49a994699fe7 (patch)
tree1ed3838eb14d897ee67be35f7ab4045c0108d1fe /xwayland/xwm.c
parent1fbd6cb0f0a517188aa17b57c3e116619d50f0bd (diff)
parent47eb478c35b109f520323af5013d47ad7ddc0824 (diff)
Merge pull request #574 from jsshandle/master
Improve code style in accordance with CONTRIBUTING.md
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r--xwayland/xwm.c7
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;
+ }
}
}