mirror of
https://github.com/swaywm/sway.git
synced 2026-02-22 01:40:39 -05:00
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:
parent
c30c451907
commit
39dc37c243
3 changed files with 20 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue