Use the new meta_window_move_to_monitor function

https://bugzilla.gnome.org/show_bug.cgi?id=645032
This commit is contained in:
Alexander Larsson 2011-03-17 18:48:09 +01:00 committed by Florian Müllner
parent 7b5eacf671
commit 8282db456b
2 changed files with 2 additions and 2 deletions

View File

@ -1401,7 +1401,7 @@ Workspace.prototype = {
// the move itself could cause a workspace change if the window enters
// the primary monitor
if (metaWindow.get_monitor() != this.monitorIndex)
metaWindow.move_frame(true, this._x, this._y);
metaWindow.move_to_monitor(this.monitorIndex);
let index = this.metaWorkspace ? this.metaWorkspace.index() : global.screen.get_active_workspace_index();
metaWindow.change_workspace_by_index(index,

View File

@ -410,7 +410,7 @@ WorkspaceThumbnail.prototype = {
// the move itself could cause a workspace change if the window enters
// the primary monitor
if (metaWindow.get_monitor() != this.monitorIndex)
metaWindow.move_frame(true, this._portholeX, this._portholeY);
metaWindow.move_to_monitor(this.monitorIndex);
metaWindow.change_workspace_by_index(this.metaWorkspace.index(),
false, // don't create workspace