Bug 405841

Summary: Wrong Dialog positions on Wayland
Product: [Frameworks and Libraries] libplasma Reporter: Matthieu Gras <grasm>
Component: libplasmaquickAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: major CC: aspotashev, bugseforuns, lucia.mrenica, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=443496
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: could not create a proper screenshot on wayland

Description Matthieu Gras 2019-03-24 22:25:21 UTC
Created attachment 119011 [details]
could not create a proper screenshot on wayland

In Qt 5.13 QWindow::geometry() QtWayland returns (0,0) for the window position.
But Dialog::popupPosition() uses the position of the visual parent to calculate the position of the popup.


STEPS TO REPRODUCE
1. Open Kickoff

SOFTWARE/OS VERSIONS
KDE Plasma Version: git master
KDE Frameworks Version: git master
Qt Version: 5.13 git
Comment 1 Patrick Silva 2019-03-26 08:50:03 UTC
I noticed the same bug testing Qt 5.13 betq1 on Arch Linux.
Comment 2 Patrick Silva 2019-03-28 10:33:17 UTC
*** Bug 405906 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2021-03-23 12:43:38 UTC
Cannot reproduce with Qt 5.15.3 and Plasma 5.21.3 Can you?
Comment 4 Matthieu Gras 2021-03-23 12:52:36 UTC
no, this was fixed (don't know when exactly)