aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorJohannes Schramm <handle@jss.de>2018-01-21 16:28:21 +0100
committerJohannes Schramm <handle@jss.de>2018-01-21 16:28:21 +0100
commitdcc743047b903af8ba409ed25745f891234dc323 (patch)
tree55328b8787123fa47cfc90e52f875a15b41045fe /xwayland
parent1fbd6cb0f0a517188aa17b57c3e116619d50f0bd (diff)
style: include brackets for if/while/for, even if it's a single statement
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index dc349ab2..13e99040 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -480,12 +480,15 @@ 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])
+ }
+ if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_VERT]) {
xsurface->maximized_vert = true;
- if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_HORZ])
+ }
+ if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_HORZ]) {
xsurface->maximized_horz = true;
+ }
}
}