Permalink
Browse files

Fix window positioning on multi-headed desktops

Change-Id: If12e60c1d31365fc922c53135bd9049c75bfe327
  • Loading branch information...
1 parent 8ec11eb commit 0dc7fb47a7658e59b48cca4e5aa3bb82168e5d52 @tomasz-wiszkowski committed Jan 9, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/elements/xfcon_window.py
@@ -178,9 +178,7 @@ def __on_menu_hide(self, *args):
def __calculate_window_size(self):
screen = self.get_screen()
height = self.settings.get_property('window-height')
- rect = screen.get_monitor_geometry(0)
- rect.x = 0
- rect.y = 0
+ rect = screen.get_monitor_geometry(screen.get_primary_monitor())
rect.height = rect.height * height / 100
return rect

0 comments on commit 0dc7fb4

Please sign in to comment.