Skip to content

Commit

Permalink
Remove set hide_mode from protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Sep 5, 2024
1 parent 5c02e6f commit cc0e181
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
18 changes: 0 additions & 18 deletions compositor/PantheonShell.vala
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ namespace GreeterCompositor {
set_anchor,
focus_panel,
set_size,
set_hide_mode,
};

wayland_pantheon_widget_interface = {
Expand Down Expand Up @@ -312,23 +311,6 @@ namespace GreeterCompositor {
ShellClientsManager.get_instance ().set_size (window, width, height);
}

internal static void set_hide_mode (Wl.Client client, Wl.Resource resource, [CCode (type = "uint32_t")] Pantheon.Desktop.HideMode hide_mode) {
unowned PanelSurface? panel_surface = resource.get_user_data<PanelSurface> ();
if (panel_surface.wayland_surface == null) {
warning ("Window tried to set hide mode but wayland surface is null.");
return;
}

Meta.Window? window;
panel_surface.wayland_surface.get ("window", out window, null);
if (window == null) {
warning ("Window tried to set hide mode but wayland surface had no associated window.");
return;
}

ShellClientsManager.get_instance ().set_hide_mode (window, hide_mode);
}

internal static void set_keep_above (Wl.Client client, Wl.Resource resource) {
unowned ExtendedBehaviorSurface? eb_surface = resource.get_user_data<ExtendedBehaviorSurface> ();
if (eb_surface.wayland_surface == null) {
Expand Down
8 changes: 0 additions & 8 deletions protocol/pantheon-desktop-shell-v1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@
<arg name="width" type="int"/>
<arg name="height" type="int"/>
</request>

<request name="set_hide_mode">
<description summary="set panel hide mode">
Tell the shell when to hide the panel.
</description>

<arg name="hide_mode" type="uint" enum="hide_mode" summary="hide mode"/>
</request>
</interface>

<interface name="io_elementary_pantheon_widget_v1" version="1">
Expand Down

0 comments on commit cc0e181

Please sign in to comment.