workspaceThumbnail: only update _porthole if the overview is visible

Otherwise it happens that porthole is computed again after that the
overlay is hidden (triggered by a layout reallocation) and thus not
regenerated again afterwards.

https://bugzilla.gnome.org/show_bug.cgi?id=792687
This commit is contained in:
Marco Trevisan (Treviño) 2018-01-19 16:31:01 +01:00
parent a198dfe3d8
commit 5fcf40b973

View File

@ -1159,7 +1159,7 @@ var ThumbnailsBox = new Lang.Class({
// The "porthole" is the portion of the screen that we show in the
// workspaces
_ensurePorthole() {
if (!Main.layoutManager.primaryMonitor)
if (!Main.layoutManager.primaryMonitor || !Main.overview.visible)
return false;
if (!this._porthole)