mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
swaybar: process hotspots on touch tap
This commit is contained in:
parent
512619a9a1
commit
4599907de7
3 changed files with 138 additions and 15 deletions
|
|
@ -22,6 +22,19 @@ struct swaybar_pointer {
|
|||
uint32_t serial;
|
||||
};
|
||||
|
||||
struct touch_slot {
|
||||
int32_t id;
|
||||
uint32_t time;
|
||||
struct swaybar_output *output;
|
||||
double start_x, start_y;
|
||||
double x, y;
|
||||
};
|
||||
|
||||
struct swaybar_touch {
|
||||
struct wl_touch *touch;
|
||||
struct touch_slot slots[16];
|
||||
};
|
||||
|
||||
enum hotspot_event_handling {
|
||||
HOTSPOT_IGNORE,
|
||||
HOTSPOT_PROCESS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue