layout: Always allow hiding the overview

When a fullscreen application is focused,
toggling the overview via hot-corner is disabled,
even when the overview is currently visible.
This only makes sense, when the overview is
hidden to not to disturb the behaviour of the
fullscreen application, but leaves an
inconsistency when the overview is visible since
it should work there like when a non-fullscreen-
application is focused.

So, always allow hiding the overview using the
hot corner when the overview is visible.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/429
This commit is contained in:
Pascal Nowack 2018-09-21 16:58:26 +02:00 committed by Florian Müllner
parent ca4e563f55
commit 2159d6886f

View File

@ -1237,7 +1237,7 @@ var HotCorner = new Lang.Class({
}, },
_toggleOverview() { _toggleOverview() {
if (this._monitor.inFullscreen) if (this._monitor.inFullscreen && !Main.overview.visible)
return; return;
if (Main.overview.shouldToggleByCornerOrButton()) { if (Main.overview.shouldToggleByCornerOrButton()) {