aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schramm <handle@jss.de>2018-01-21 17:04:23 +0100
committerJohannes Schramm <handle@jss.de>2018-01-21 17:04:23 +0100
commit47eb478c35b109f520323af5013d47ad7ddc0824 (patch)
tree1ed3838eb14d897ee67be35f7ab4045c0108d1fe
parente37ebf6869b653c91c27af706404d60b78ad0168 (diff)
style: add else keywords in xwm.c
-rw-r--r--xwayland/xwm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 13e99040..aada6501 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -482,11 +482,9 @@ static void read_surface_net_wm_state(struct wlr_xwm *xwm,
for (uint32_t i = 0; i < reply->value_len; i++) {
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;
}
}