[gnome-shell] [workspaces] Only allow mouse clicks to swich for empty workspaces
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [workspaces] Only allow mouse clicks to swich for empty workspaces
- Date: Fri, 16 Apr 2010 21:24:30 +0000 (UTC)
commit 4a0fbf03a8710ae02e687e4de1a4125e8bce7471
Author: Colin Walters <walters verbum org>
Date: Fri Apr 16 16:50:26 2010 -0400
[workspaces] Only allow mouse clicks to swich for empty workspaces
Allowing it in the case of 1 window is weird - it makes it feel
like a bug when you go from 1 to 2.
js/ui/workspace.js | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 77d41b4..d3165c5 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -625,10 +625,11 @@ Workspace.prototype = {
this._desktop.connect('selected',
Lang.bind(this,
function(clone, time) {
- // Only switch to the workspace when one window is open
- // We check for "2" here because the Desktop does not really count
- // as a window in this context.
- if (this._windows.length <= 2) {
+ // Only switch to the workspace when there's no application windows
+ // open (we always have one window for the desktop). The problem
+ // is that it's too easy to miss an app window and get the wrong
+ // one focused.
+ if (this._windows.length == 1) {
this.metaWorkspace.activate(time);
Main.overview.hide();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]