summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-01-18 14:12:38 -0600
committerDevin J. Pohly <djpohly@gmail.com>2021-01-18 14:12:38 -0600
commit81d35aaccfdc75a149cf90254938b86ff6435f40 (patch)
tree27e021f25b0614674f957e73cd4f62a3a6e3602b
parenta5210f7d77a4849a09eec13e7cf3f9d5c844cf4b (diff)
remove unnecessary variable
-rw-r--r--dwl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 5030a2c..2c80209 100644
--- a/dwl.c
+++ b/dwl.c
@@ -573,7 +573,6 @@ arrangelayers(Monitor *m)
ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY,
ZWLR_LAYER_SHELL_V1_LAYER_TOP,
};
- size_t nlayers = LENGTH(layers_above_shell);
LayerSurface *layersurface;
struct wlr_keyboard *kb = wlr_seat_get_keyboard(seat);
@@ -603,7 +602,7 @@ arrangelayers(Monitor *m)
&usable_area, 0);
// Find topmost keyboard interactive layer, if such a layer exists
- for (size_t i = 0; i < nlayers; ++i) {
+ for (size_t i = 0; i < LENGTH(layers_above_shell); ++i) {
wl_list_for_each_reverse(layersurface,
&m->layers[layers_above_shell[i]], link) {
if (layersurface->layer_surface->current.keyboard_interactive &&