[gnome-shell] workspacesView.js: Fix dropping window on +
- From: Maxim Ermilov <mermilov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspacesView.js: Fix dropping window on +
- Date: Mon, 22 Mar 2010 20:47:32 +0000 (UTC)
commit b93cb4b976bcfcb6fe5b61309e50921113f83976
Author: Maxim Ermilov <zaspire rambler ru>
Date: Mon Mar 22 23:41:26 2010 +0300
workspacesView.js: Fix dropping window on +
https://bugzilla.gnome.org/show_bug.cgi?id=610191
js/ui/overview.js | 1 +
js/ui/workspacesView.js | 15 +++++----------
2 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 3a5278a..92f377a 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -262,6 +262,7 @@ Overview.prototype = {
// Show new workspacesView
this._group.add_actor(this._workspaces.actor);
+ this._workspacesBar.raise(this._workspaces.actor);
this._dash.actor.raise(this._workspaces.actor);
},
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index 6e30161..9b45fba 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -259,6 +259,11 @@ GenericWorkspacesView.prototype = {
_activeWorkspaceChanged: function() {
throw new Error("Not implemented");
+ },
+
+ _acceptNewWorkspaceDrop: function(source, dropActor, x, y, time) {
+ this.addWorkspace();
+ return this.acceptNewWorkspaceDrop(source, dropActor, x, y, time);
}
};
@@ -453,11 +458,6 @@ MosaicView.prototype = {
let metaWorkspace = this._workspaces[removedIndex].metaWorkspace;
global.screen.remove_workspace(metaWorkspace,
global.get_current_time());
- },
-
- _acceptNewWorkspaceDrop: function(source, dropActor, x, y, time) {
- this._addNewWorkspace();
- return this.acceptNewWorkspaceDrop(source, dropActor, x, y, time);
}
};
@@ -1306,11 +1306,6 @@ SingleView.prototype = {
let metaWorkspace = this._workspaces[removedIndex].metaWorkspace;
global.screen.remove_workspace(metaWorkspace,
global.get_current_time());
- },
-
- _acceptNewWorkspaceDrop: function(source, dropActor, x, y, time) {
- this.addWorkspace();
- return this.acceptNewWorkspaceDrop(source, dropActor, x, y, time);
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]