Skip to content

Commit

Permalink
wayfire-shell: Bump version for new toggle_menu event
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau committed Jan 16, 2024
1 parent d3308e6 commit bb325c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions plugins/protocols/wayfire-shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class wfs_output
{
this->output = output;

resource = wl_resource_create(client, &zwf_output_v2_interface, 1, id);
resource = wl_resource_create(client, &zwf_output_v2_interface, 2, id);
wl_resource_set_implementation(resource, &zwf_output_impl, this, handle_output_destroy);
output->connect(&on_fullscreen_layer_focused);
output->connect(&on_toggle_menu);
Expand Down Expand Up @@ -423,7 +423,7 @@ void bind_zwf_shell_manager(wl_client *client, void *data,
uint32_t version, uint32_t id)
{
auto resource =
wl_resource_create(client, &zwf_shell_manager_v2_interface, 1, id);
wl_resource_create(client, &zwf_shell_manager_v2_interface, 2, id);
wl_resource_set_implementation(resource,
&zwf_shell_manager_v2_impl, NULL, NULL);
}
Expand Down
9 changes: 5 additions & 4 deletions proto/wayfire-shell-unstable-v2.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<protocol name="wayfire_shell_unstable_v2">
<interface name="zwf_shell_manager_v2" version="1">
<interface name="zwf_shell_manager_v2" version="2">
<description summary="DE integration">
This protocol provides additional events and requests for special DE
clients like panels, docks, etc.
Expand All @@ -21,7 +21,7 @@
</request>
</interface>

<interface name="zwf_output_v2" version="1">
<interface name="zwf_output_v2" version="2">
<description summary="A wrapper for wl_output">
Represents a single output.
Each output is managed independently from the others.
Expand Down Expand Up @@ -88,9 +88,10 @@
<arg name="id" type="new_id" interface="zwf_hotspot_v2"/>
</request>

<event name="toggle_menu">
<!-- Version 2 additions -->
<event name="toggle_menu" since="2">
<description summary="Toggle menu event">
Tells the menu to open.
Tells the menu to toggle open or close.

Emitted using an activator binding.
</description>
Expand Down

0 comments on commit bb325c1

Please sign in to comment.