Skip to content

Commit

Permalink
toplevel-mngt: Add sticky state handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Sep 3, 2024
1 parent 745c017 commit 3fd80ff
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions unstable/cosmic-toplevel-management-unstable-v1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Copyright © 2018 Ilia Bozhinov
Copyright © 2020 Isaac Freund
Copyright © 2022 wb9688
Copyright © 2022 Victoria Brekenfeld
Copyright © 2024 Victoria Brekenfeld

Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Expand All @@ -28,7 +28,7 @@
THIS SOFTWARE.
</copyright>

<interface name="zcosmic_toplevel_manager_v1" version="2">
<interface name="zcosmic_toplevel_manager_v1" version="3">
<description summary="control open apps">
This protocol allows clients such as a taskbar to request the compositor
to preform typical actions on open toplevels. The compositor is in all
Expand All @@ -50,6 +50,7 @@
<entry name="minimize" value="4" summary="set_minimized and unset_minimized requests are available"/>
<entry name="fullscreen" value="5" summary="set_fullscreen and unset_fullscreen requests are available"/>
<entry name="move_to_workspace" value="6" since="2" summary="move_to_workspace request is available"/>
<entry name="sticky" value="7" since="3" summary="set_sticky and unset_sticky requests are available"/>
</enum>

<event name="capabilities">
Expand Down Expand Up @@ -177,6 +178,22 @@
<arg name="output" type="object" interface="wl_output"/>
</request>

<request name="set_sticky" since="3">
<description summary="request that a toplevel be made sticky">
If the compositor honors this request, the
zcosmic_toplevel_handle_v1.state event will be sent.
</description>
<arg name="toplevel" type="object" interface="zcosmic_toplevel_handle_v1"/>
</request>

<request name="unset_sticky" since="3">
<description summary="request that a toplevel be removed of the sticky status">
If the compositor honors this request, the
zcosmic_toplevel_handle_v1.state event will be sent.
</description>
<arg name="toplevel" type="object" interface="zcosmic_toplevel_handle_v1"/>
</request>

<enum name="error">
<entry name="invalid_rectangle" value="0"
summary="the provided rectangle is invalid"/>
Expand Down

0 comments on commit 3fd80ff

Please sign in to comment.