Skip to content

Commit 8213421

Browse files
committed
Honor the screen available geometry
Using 0,0 coordinates was wrong and caused additional windows to always cover the first one when a screen was resized.
1 parent 17f5caa commit 8213421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/greeter/GreeterApp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ namespace SDDM {
166166
#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 0))
167167
// always resize when the screen geometry changes
168168
connect(screen, &QScreen::availableGeometryChanged, this, [view](const QRect &r) {
169-
view->setGeometry(QRect(QPoint(0, 0), r.size()));
169+
view->setGeometry(r);
170170
});
171171
#endif
172172

0 commit comments

Comments
 (0)