From 36647058e1daa6642cd0d3a8e5e6bb501a6e4fc3 Mon Sep 17 00:00:00 2001 From: jderose9 Date: Sun, 19 Mar 2017 22:01:51 -0400 Subject: [PATCH] Swarm animation start from app-grid button For #49 --- extension.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extension.js b/extension.js index 1876ce1..45e0a2a 100644 --- a/extension.js +++ b/extension.js @@ -33,6 +33,7 @@ const WindowManager = imports.ui.windowManager; let panel; let overview; let settings; +let oldDash; function init() { } @@ -57,12 +58,20 @@ function enable() { panel.taskbar.popupFocusedAppSecondaryMenu(); }) ); + + // Pretend I'm the dash: meant to make appgrd swarm animation come from the + // right position of the appShowButton. + oldDash = Main.overview._dash; + Main.overview._dash = panel.taskbar; } function disable() { overview.disable(); panel.disable(); settings.run_dispose(); + Main.overview._dash = oldDash; + + oldDash=null; settings = null; overview = null; panel = null;