[gnome-shell] grabHelper: Restore the actually saved focus on ungrab
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] grabHelper: Restore the actually saved focus on ungrab
- Date: Thu, 14 Feb 2013 18:17:51 +0000 (UTC)
commit 60257f422a5a35cee2adbcbc0d94738bc2e2fb9d
Author: Florian MÃllner <fmuellner gnome org>
Date: Sat Feb 9 23:05:43 2013 +0100
grabHelper: Restore the actually saved focus on ungrab
GrabHelper saves the actor that had key focus when taking over the grab
(if any). On ungrab, the key focus is either restored or moved to some
child of the saved actor. The latter is unexpected and causes some odd
behavior, so don't be fancy and only restore the actual focus.
https://bugzilla.gnome.org/show_bug.cgi?id=693570
js/ui/grabHelper.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js
index 315e2d4..fe3a121 100644
--- a/js/ui/grabHelper.js
+++ b/js/ui/grabHelper.js
@@ -311,7 +311,8 @@ const GrabHelper = new Lang.Class({
if (hadFocus) {
let poppedGrab = poppedGrabs[0];
- _navigateActor(poppedGrab.savedFocus);
+ if (poppedGrab.savedFocus)
+ poppedGrab.savedFocus.grab_key_focus();
}
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]