aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/input.c
diff options
context:
space:
mode:
authorLibravatar Manuel Stoeckl <code@mstoeckl.com>2021-02-03 21:45:51 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2021-02-04 09:49:06 +0100
commit8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5 (patch)
tree518f1d6660fdb6527c0e4524589315b00febbe73 /swaybar/input.c
parentDeclare all struct cmd_handler arrays const (diff)
downloadsway-8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5.tar.gz
sway-8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5.tar.zst
sway-8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5.zip
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,
339 seat->axis[axis].discrete_steps += abs(discrete); 339 seat->axis[axis].discrete_steps += abs(discrete);
340} 340}
341 341
342static struct wl_pointer_listener pointer_listener = { 342static const struct wl_pointer_listener pointer_listener = {
343 .enter = wl_pointer_enter, 343 .enter = wl_pointer_enter,
344 .leave = wl_pointer_leave, 344 .leave = wl_pointer_leave,
345 .motion = wl_pointer_motion, 345 .motion = wl_pointer_motion,