[gnome-shell] Use the new meta_window_move_to_monitor function
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Use the new meta_window_move_to_monitor function
- Date: Mon, 21 Mar 2011 23:59:16 +0000 (UTC)
commit 8282db456b9eac3a6a0afe727dfdf953e0bbf2dc
Author: Alexander Larsson <alexl redhat com>
Date: Thu Mar 17 18:48:09 2011 +0100
Use the new meta_window_move_to_monitor function
https://bugzilla.gnome.org/show_bug.cgi?id=645032
js/ui/workspace.js | 2 +-
js/ui/workspaceThumbnail.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index be973b6..3a07585 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -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,
diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js
index 9d92f7b..96fd52b 100644
--- a/js/ui/workspaceThumbnail.js
+++ b/js/ui/workspaceThumbnail.js
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]