[gnome-shell] main: don't hook up overview keybinding until after startup
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] main: don't hook up overview keybinding until after startup
- Date: Mon, 4 Mar 2013 16:58:58 +0000 (UTC)
commit cd37e2908faede6747d69e04b25035076541e672
Author: Ray Strode <rstrode redhat com>
Date: Mon Mar 4 08:07:14 2013 -0500
main: don't hook up overview keybinding until after startup
Toggling the overview during the startup animation reportedly
causes stuck grab and other odd behavior.
There's no reason to handle toggling the overview during this
time anyway.
This commit defers that handling until after startup.
https://bugzilla.gnome.org/show_bug.cgi?id=694837
js/ui/layout.js | 2 ++
js/ui/main.js | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index 61e2250..b178b53 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -639,6 +639,8 @@ const LayoutManager = new Lang.Class({
this.emit('panel-box-changed');
this._queueUpdateRegions();
+
+ this.emit('startup-complete');
},
showKeyboard: function () {
diff --git a/js/ui/main.js b/js/ui/main.js
index d3ce7df..4025bd7 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -58,7 +58,7 @@ let shellDBusService = null;
let shellMountOpDBusService = null;
let screenSaverDBus = null;
let modalCount = 0;
-let keybindingMode = Shell.KeyBindingMode.NORMAL;
+let keybindingMode = Shell.KeyBindingMode.NONE;
let modalActorFocusStack = [];
let uiGroup = null;
let magnifier = null;
@@ -202,6 +202,11 @@ function startSession() {
layoutManager.connect('startup-prepared', function() {
layoutManager.startupAnimation();
});
+ layoutManager.connect('startup-complete', function() {
+ if (keybindingMode == Shell.KeyBindingMode.NONE) {
+ keybindingMode = Shell.KeyBindingMode.NORMAL;
+ }
+ });
}
let _workspaces = [];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]