Skip to content

Commit 5f98fa8

Browse files
committed
Keep the dock visible in the MultitaskingView
1 parent 2d88c0e commit 5f98fa8

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

protocol/pantheon-desktop-shell-v1.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@
9898

9999
<arg name="hide_mode" type="uint" enum="hide_mode" summary="hide mode"/>
100100
</request>
101+
102+
<request name="request_visible_in_multitasking_view">
103+
<description summary="request visible in multitasking view">
104+
Tell the shell that the panel would like to be visible in the multitasking view.
105+
</description>
106+
</request>
101107
</interface>
102108

103109
<interface name="io_elementary_pantheon_widget_v1" version="1">

protocol/pantheon-desktop-shell.vapi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ namespace Pantheon.Desktop {
4747
public void focus ();
4848
public void set_size (int width, int height);
4949
public void set_hide_mode (Pantheon.Desktop.HideMode hide_mode);
50+
public void request_visible_in_multitasking_view ();
5051
}
5152

5253
[CCode (cheader_filename = "pantheon-desktop-shell-client-protocol.h", cname = "struct io_elementary_pantheon_widget_v1", cprefix = "io_elementary_pantheon_widget_v1_")]

src/MainWindow.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public class Dock.MainWindow : Gtk.ApplicationWindow {
9393
panel = desktop_shell.get_panel (wl_surface);
9494
panel.set_anchor (BOTTOM);
9595
panel.set_hide_mode (settings.get_enum ("autohide-mode"));
96+
panel.request_visible_in_multitasking_view ();
9697
}
9798
}
9899
}

0 commit comments

Comments
 (0)