[gnome-shell] workspace: Focus clone when highlighting



commit 1939e22c22c142b38216d9e36dcdf79e96003532
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Aug 20 17:53:41 2017 +0200

    workspace: Focus clone when highlighting
    
    We don't use different hover- and focus indications for window previews,
    so using keyboard navigation after hovering a clone often has surprising
    results when the previous focus window wasn't the selected one. Address
    this by simply moving the keyboard focus with the highlight.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786546

 js/ui/workspace.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index a377649..a64cf7d 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -662,6 +662,7 @@ var WindowOverlay = new Lang.Class({
         if (this._hidden)
             return;
 
+        this._windowClone.actor.grab_key_focus();
         this._animateVisible();
         this.emit('show-close-button');
     },


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