Skip to content

Keep toplevel windows in the top left corner of the screen

Reilly Brogan requested to merge reillybrogan/qtwayland:submenuFix into kde/5.15

Cherry-picked from commit a46795a2. Fixes https://bugs.kde.org/show_bug.cgi?id=436016

We can't know the actual position of a window on the screen. This causes an issue when Widgets try to position a popup/menu absolutely and keep it on the screen when the screen geometry doesn't include (0,0). Instead report their positions always as the top left corner of the screen that they are on. This new behavior can be disabled for qt-shell or via an environment variable by users that rely on the old behavior.

Fixes: QTBUG-85297 Change-Id: Iacb91cb03a0df87af950115760d2f41124ac06a3 Reviewed-by: Qt CI Bot qt_ci_bot@qt-project.org Reviewed-by: David Edmundson davidedmundson@kde.org Reviewed-by: Aleix Pol Gonzalez aleixpol@kde.org

Merge request reports