From b907e44fdf9c445271e7218c0c706d45ede17513 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 4 Feb 2013 23:50:51 +0100 Subject: [PATCH] windowsNavigator: update for gnome-shell changes Update for the new way to layout window overlays --- extensions/windowsNavigator/extension.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js index 0c542448..c38a98f1 100644 --- a/extensions/windowsNavigator/extension.js +++ b/extensions/windowsNavigator/extension.js @@ -206,7 +206,9 @@ function enable() { parentActor.add_actor(this._text); }); - winInjections['updatePositions'] = injectToFunction(Workspace.WindowOverlay.prototype, 'updatePositions', function(cloneX, cloneY, cloneWidth, cloneHeight) { + winInjections['relayout'] = injectToFunction(Workspace.WindowOverlay.prototype, 'relayout', function(animate) { + let [cloneX, cloneY, cloneWidth, cloneHeight] = this._windowClone.slot; + let textX = cloneX - 2; let textY = cloneY - 2; this._text.set_position(Math.floor(textX) + 5, Math.floor(textY) + 5);