diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-02-03 21:45:51 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-04 09:49:06 +0100 |
commit | 8f2cd3236f0f7e0ae8fcd9d1447cc583d17de5c5 (patch) | |
tree | 518f1d6660fdb6527c0e4524589315b00febbe73 /swaybar/input.c | |
parent | Declare all struct cmd_handler arrays const (diff) | |
download | sway-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.c | 2 |
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 | ||
342 | static struct wl_pointer_listener pointer_listener = { | 342 | static 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, |