Skip to content

Commit 00d7197

Browse files
authored
Multitasking: show apps menu hotcorner at the same corner as panel (#447)
1 parent e386553 commit 00d7197

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

data/desktop.metainfo.xml.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
</ul>
5353
</description>
5454
<issues>
55+
<issue url="https://github.com/elementary/settings-desktop/issues/112">Remove "Show applications menu" top right hotcorner</issue>
5556
<issue url="https://github.com/elementary/settings-desktop/issues/431">Crash when entering custom command for hot corner</issue>
5657
<issue url="https://github.com/elementary/settings-desktop/issues/432">The Multitasking window closes when typing or pasting commands into the input field</issue>
5758
</issues>

src/Views/Multitasking.vala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,22 @@ public class PantheonShell.Multitasking : Switchboard.SettingsPage {
118118
label.add_css_class ("hotcorner");
119119
label.add_css_class (position);
120120

121+
var text_direction = get_default_direction ();
122+
121123
var combo = new Gtk.ComboBoxText () {
122124
hexpand = true,
123125
valign = Gtk.Align.END
124126
};
125127
combo.append ("none", _("Do nothing"));
126128
combo.append ("show-workspace-view", _("Multitasking View"));
127129
combo.append ("maximize-current", _("Maximize current window"));
128-
combo.append ("open-launcher", _("Show Applications Menu"));
130+
// Only show Applications Menu hotcorner for the same panel corner
131+
if (
132+
position == "topleft" && text_direction == LTR ||
133+
position == "topright" && text_direction == RTL
134+
) {
135+
combo.append ("open-launcher", _("Show Applications Menu"));
136+
}
129137
combo.append ("window-overview-all", _("Show all windows"));
130138
combo.append ("switch-to-workspace-previous", _("Switch to previous workspace"));
131139
combo.append ("switch-to-workspace-next", _("Switch to next workspace"));

0 commit comments

Comments
 (0)