From 2aad5844bb00da31aac5cf64674d03f3014d8b02 Mon Sep 17 00:00:00 2001 From: PapyElGringo Date: Sat, 20 Jul 2019 08:46:24 +0200 Subject: [PATCH] fix top bar disapearing --- superWorkspace/superWorkspace.js | 13 ++++++++++--- superWorkspace/superWorkspaceManager.js | 2 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/superWorkspace/superWorkspace.js b/superWorkspace/superWorkspace.js index a773d81..b7b06f0 100644 --- a/superWorkspace/superWorkspace.js +++ b/superWorkspace/superWorkspace.js @@ -13,7 +13,15 @@ const CategorizedAppCard = const { Stack } = Me.imports.widget.layout; var SuperWorkspace = class SuperWorkspace { - constructor(categoryKey, category, apps, monitor, visible) { + constructor( + superWorkspaceManager, + categoryKey, + category, + apps, + monitor, + visible + ) { + this.superWorkspaceManager = superWorkspaceManager; this.categoryKey = categoryKey; this.category = category; this.monitor = monitor; @@ -209,8 +217,7 @@ var SuperWorkspace = class SuperWorkspace { }); return ( !containFullscreenWindow && - (global.superWorkspaceManager && - !global.superWorkspaceManager.noUImode) + (this.superWorkspaceManager && !this.superWorkspaceManager.noUImode) ); } diff --git a/superWorkspace/superWorkspaceManager.js b/superWorkspace/superWorkspaceManager.js index 808cde2..2b2d066 100644 --- a/superWorkspace/superWorkspaceManager.js +++ b/superWorkspace/superWorkspaceManager.js @@ -19,6 +19,7 @@ var SuperWorkspaceManager = class SuperWorkspaceManager { if (!this.appsByCategory[key].length) continue; if (category.primary) { let superWorkspace = new SuperWorkspace( + this, key, category, this.appsByCategory[key], @@ -36,6 +37,7 @@ var SuperWorkspaceManager = class SuperWorkspaceManager { continue; } let superWorkspace = new SuperWorkspace( + this, key, category, this.appsByCategory[key],