Add support for mouse movement events through Sway IPC

This commit is contained in:
Zai-Kun 2025-01-23 16:22:23 +05:00
parent 8acb0482da
commit 2f22eb5d28
4 changed files with 21 additions and 0 deletions

View file

@ -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),

View file

@ -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