workspacesView.js: Fix dropping window on +

https://bugzilla.gnome.org/show_bug.cgi?id=610191
This commit is contained in:
Maxim Ermilov 2010-03-22 23:41:26 +03:00
parent 6744433245
commit b93cb4b976
2 changed files with 6 additions and 10 deletions

View File

@ -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);
},

View File

@ -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);
}
};