[gnome-shell-extensions] windowsNavigator: correct restore focus



commit 0ecccc786892b7b582a263993737f1ed53815fa9
Author: Maxim Ermilov <zaspire rambler ru>
Date:   Thu Mar 24 01:36:37 2011 +0300

    windowsNavigator: correct restore focus
    
    previously it conflict with runDialog

 extensions/windowsNavigator/extension.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index 6cd5374..3dbc52e 100644
--- a/extensions/windowsNavigator/extension.js
+++ b/extensions/windowsNavigator/extension.js
@@ -81,7 +81,8 @@ function main() {
     }
 
     WorkspacesView.WorkspacesView.prototype._hideTooltips = function() {
-        global.stage.set_key_focus(this._prevFocusActor);
+        if (global.stage.get_key_focus() == global.stage)
+            global.stage.set_key_focus(this._prevFocusActor);
         this._pickWindow = false;
         for (let i = 0; i < this._workspaces.length; i++)
             this._workspaces[i].hideWindowsTooltips();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]