added an error for duplicate keybinds

This commit is contained in:
Vaxry 2023-01-13 18:20:22 +01:00
parent 62bb2615b7
commit 81e6938c0e
1 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,8 @@
A global shortcut is anonymous, meaning the app does not know what key(s) trigger it. A global shortcut is anonymous, meaning the app does not know what key(s) trigger it.
The shortcut's keybinding shall be dealt with by the compositor. The shortcut's keybinding shall be dealt with by the compositor.
In the case of a duplicate app_id + id combination, the already_taken protocol error is raised.
</description> </description>
<arg name="shortcut" type="new_id" interface="hyprland_global_shortcut_v1"/> <arg name="shortcut" type="new_id" interface="hyprland_global_shortcut_v1"/>
<arg name="id" type="string" summary="a unique id for the shortcut"/> <arg name="id" type="string" summary="a unique id for the shortcut"/>
@ -61,6 +63,11 @@
appropriate destroy request has been called. appropriate destroy request has been called.
</description> </description>
</request> </request>
<enum name="error">
<entry name="already_taken" value="0"
summary="the app_id + id combination has already been registered."/>
</enum>
</interface> </interface>
<interface name="hyprland_global_shortcut_v1"> <interface name="hyprland_global_shortcut_v1">