mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
style: add else keywords in xwm.c
This commit is contained in:
parent
e37ebf6869
commit
47eb478c35
1 changed files with 2 additions and 4 deletions
|
|
@ -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++) {
|
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;
|
xsurface->fullscreen = true;
|
||||||
}
|
} else if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_VERT]) {
|
||||||
if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_VERT]) {
|
|
||||||
xsurface->maximized_vert = true;
|
xsurface->maximized_vert = true;
|
||||||
}
|
} else if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_HORZ]) {
|
||||||
if (atom[i] == xwm->atoms[_NET_WM_STATE_MAXIMIZED_HORZ]) {
|
|
||||||
xsurface->maximized_horz = true;
|
xsurface->maximized_horz = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue