ipc: add shutdown event

This commit is contained in:
Ian Fan 2018-07-13 16:58:45 +01:00
parent f078f7fdfa
commit e8b179e313
4 changed files with 21 additions and 2 deletions

View file

@ -27,8 +27,9 @@ enum ipc_command_type {
IPC_EVENT_WINDOW = ((1<<31) | 3),
IPC_EVENT_BARCONFIG_UPDATE = ((1<<31) | 4),
IPC_EVENT_BINDING = ((1<<31) | 5),
IPC_EVENT_MODIFIER = ((1<<31) | 6),
IPC_EVENT_INPUT = ((1<<31) | 7),
IPC_EVENT_SHUTDOWN = ((1<<31) | 6),
IPC_EVENT_MODIFIER = ((1<<31) | 16),
IPC_EVENT_INPUT = ((1<<31) | 17),
};
#endif

View file

@ -16,5 +16,6 @@ void ipc_event_workspace(struct sway_container *old,
void ipc_event_window(struct sway_container *window, const char *change);
void ipc_event_barconfig_update(struct bar_config *bar);
void ipc_event_mode(const char *mode, bool pango);
void ipc_event_shutdown(const char *reason);
#endif