swaybar: refactor workspace button handling logic

Move the workspace pointer/touch button handling logic from render.c
to input.c, and reorganize it so handling more buttons is more natural.
No functional change intended.

Signed-off-by: Joan Bruguera Micó <joanbrugueram@gmail.com>
This commit is contained in:
Joan Bruguera Micó 2024-08-15 11:17:16 +00:00
parent c30c451907
commit 39dc37c243
3 changed files with 20 additions and 10 deletions

View file

@ -78,6 +78,9 @@ uint32_t event_to_x11_button(uint32_t event);
void free_hotspots(struct wl_list *list);
bool handle_workspace_button(struct swaybar_output *output,
uint32_t button, bool released, const char *ws);
void swaybar_seat_free(struct swaybar_seat *seat);
#endif