mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
Add support for mouse movement events through Sway IPC
This commit is contained in:
parent
8acb0482da
commit
2f22eb5d28
4 changed files with 21 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ enum ipc_command_type {
|
|||
IPC_EVENT_BINDING = ((1<<31) | 5),
|
||||
IPC_EVENT_SHUTDOWN = ((1<<31) | 6),
|
||||
IPC_EVENT_TICK = ((1<<31) | 7),
|
||||
IPC_EVENT_CURSOR_MOVEMENT = ((1<<31) | 8),
|
||||
|
||||
// sway-specific event types
|
||||
IPC_EVENT_BAR_STATE_UPDATE = ((1<<31) | 20),
|
||||
|
|
|
|||
|
|
@ -22,5 +22,6 @@ void ipc_event_shutdown(const char *reason);
|
|||
void ipc_event_binding(struct sway_binding *binding);
|
||||
void ipc_event_input(const char *change, struct sway_input_device *device);
|
||||
void ipc_event_output(void);
|
||||
void ipc_event_cursor_movement(double x, double y);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue