aboutsummaryrefslogtreecommitdiff
path: root/swaybar/input.c
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2021-02-03 21:45:51 -0500
committerSimon Ser <contact@emersion.fr>2021-02-04 09:49:06 +0100
commit8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5 (patch)
tree518f1d6660fdb6527c0e4524589315b00febbe73 /swaybar/input.c
parentcb3c7276324b5b0862088df9ffe5498998edae91 (diff)
Make Wayland request listeners static const when possible
Diffstat (limited to 'swaybar/input.c')
-rw-r--r--swaybar/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/input.c b/swaybar/input.c
index 4fe6dd93..67f3522a 100644
--- a/swaybar/input.c
+++ b/swaybar/input.c
@@ -339,7 +339,7 @@ static void wl_pointer_axis_discrete(void *data, struct wl_pointer *wl_pointer,
seat->axis[axis].discrete_steps += abs(discrete);
}
-static struct wl_pointer_listener pointer_listener = {
+static const struct wl_pointer_listener pointer_listener = {
.enter = wl_pointer_enter,
.leave = wl_pointer_leave,
.motion = wl_pointer_motion,