diff options
Diffstat (limited to 'Lib/defconQt/fontView.py')
| -rw-r--r-- | Lib/defconQt/fontView.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 |
