From 0a5eaae9e704e478bfb521d2f1f8e441a3fc5449 Mon Sep 17 00:00:00 2001 From: Adrien Tétar Date: Thu, 29 Oct 2015 22:06:38 +0100 Subject: fontView: use available geometry --- Lib/defconQt/fontView.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/defconQt/fontView.py') diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py index 523719f..c7fdccf 100644 --- a/Lib/defconQt/fontView.py +++ b/Lib/defconQt/fontView.py @@ -251,8 +251,7 @@ class InfoPanel(QWidget): def showEvent(self, event): super().showEvent(event) - # TODO: does not put window on secondary screen if applicable - screenRect = QApplication.desktop().screenGeometry() + screenRect = QApplication.desktop().availableGeometry(self) widgetRect = self.frameGeometry() x = screenRect.width() - (widgetRect.width() + 20) y = screenRect.center().y() - widgetRect.height() / 2 -- cgit v1.2.3