mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-27 21:37:48 -04:00
xwayland/xwm: pluralize array variable in read_surface_net_wm_state()
Make it clear this doesn't contain a single atom.
This commit is contained in:
parent
851cdd0089
commit
5cb5373959
1 changed files with 13 additions and 13 deletions
|
|
@ -1030,31 +1030,31 @@ static void read_surface_net_wm_state(struct wlr_xwm *xwm,
|
||||||
struct wlr_xwayland_surface *xsurface,
|
struct wlr_xwayland_surface *xsurface,
|
||||||
xcb_get_property_reply_t *reply) {
|
xcb_get_property_reply_t *reply) {
|
||||||
xsurface->fullscreen = 0;
|
xsurface->fullscreen = 0;
|
||||||
const xcb_atom_t *atom = xcb_get_property_value(reply);
|
const xcb_atom_t *atoms = xcb_get_property_value(reply);
|
||||||
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_MODAL]) {
|
if (atoms[i] == xwm->atoms[NET_WM_STATE_MODAL]) {
|
||||||
xsurface->modal = true;
|
xsurface->modal = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_FULLSCREEN]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_FULLSCREEN]) {
|
||||||
xsurface->fullscreen = true;
|
xsurface->fullscreen = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_MAXIMIZED_VERT]) {
|
} else if (atoms[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]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_MAXIMIZED_HORZ]) {
|
||||||
xsurface->maximized_horz = true;
|
xsurface->maximized_horz = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_HIDDEN]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_HIDDEN]) {
|
||||||
xsurface->minimized = true;
|
xsurface->minimized = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_STICKY]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_STICKY]) {
|
||||||
xsurface->sticky = true;
|
xsurface->sticky = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_SHADED]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_SHADED]) {
|
||||||
xsurface->shaded = true;
|
xsurface->shaded = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_SKIP_TASKBAR]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_SKIP_TASKBAR]) {
|
||||||
xsurface->skip_taskbar = true;
|
xsurface->skip_taskbar = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_SKIP_PAGER]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_SKIP_PAGER]) {
|
||||||
xsurface->skip_pager = true;
|
xsurface->skip_pager = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_ABOVE]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_ABOVE]) {
|
||||||
xsurface->above = true;
|
xsurface->above = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_BELOW]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_BELOW]) {
|
||||||
xsurface->below = true;
|
xsurface->below = true;
|
||||||
} else if (atom[i] == xwm->atoms[NET_WM_STATE_DEMANDS_ATTENTION]) {
|
} else if (atoms[i] == xwm->atoms[NET_WM_STATE_DEMANDS_ATTENTION]) {
|
||||||
xsurface->demands_attention = true;
|
xsurface->demands_attention = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue