[sushi] mainwindow: place the sushi window on the current monitor
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] mainwindow: place the sushi window on the current monitor
- Date: Thu, 28 Apr 2011 14:18:37 +0000 (UTC)
commit b496408cbe796397e57489808b645d46812708e1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Apr 28 10:17:49 2011 -0400
mainwindow: place the sushi window on the current monitor
src/js/ui/mainWindow.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 40286c3..d3e60be 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -496,8 +496,8 @@ MainWindow.prototype = {
let windowSize = this._getWindowSize();
this._gtkWindow.resize(windowSize[0], windowSize[1]);
- this._gtkWindow.move((geometry.width - windowSize[0]) / 2,
- (geometry.height - windowSize[1]) / 2);
+ this._gtkWindow.move(geometry.x + ((geometry.width - windowSize[0]) / 2),
+ geometry.y + ((geometry.height - windowSize[1]) / 2));
},
_fadeInWindow : function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]