mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
Add idle-inhibitor ipc subscription type
Add a new type of ipc subscription so clients can be notified of changes in idle inhibitors. This allows to react to those events by e.g. changing container properties (title, ...) to notify the user about this circumstance (add marker, change color, ...). For this reason the event includes information about the affected container as well. Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
This commit is contained in:
parent
0b7ee0b4a6
commit
d48c2998e3
8 changed files with 78 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ enum ipc_command_type {
|
|||
// sway-specific event types
|
||||
IPC_EVENT_BAR_STATE_UPDATE = ((1<<31) | 20),
|
||||
IPC_EVENT_INPUT = ((1<<31) | 21),
|
||||
IPC_EVENT_IDLE_INHIBITOR = ((1<<31) | 22),
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue