Bug 404249 - [Wayland] Some menus show up in wrong position after I maximize a window
Summary: [Wayland] Some menus show up in wrong position after I maximize a window
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_sddm (show other bugs)
Version: 5.16.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2019-02-12 17:27 UTC by Patrick Silva
Modified: 2020-06-14 00:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (130.31 KB, image/png)
2019-02-12 17:27 UTC, Patrick Silva
Details
debug (41.37 KB, text/plain)
2019-02-13 01:11 UTC, Patrick Silva
Details
kcm_sddm debug (69.05 KB, text/plain)
2019-02-13 13:09 UTC, Patrick Silva
Details
misplaced dropdown in "default applications" kcm (67.60 KB, image/png)
2019-03-07 16:20 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-02-12 17:27:37 UTC
Created attachment 118008 [details]
screenshot

STEPS TO REPRODUCE
1. start Wayland session
2. search for "SDDM" kcm in the apps launcher and open it (unmaximized window shows up)
3. maximize SDDM kcm
4. click the button to select a new SDDM background

OBSERVED RESULT
The menu is misplaced, see the screenshot please.

EXPECTED RESULT
The menu is positioned correctly.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.0
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1

ADDITIONAL INFORMATION
The same menu shows up in correct position before I maximize SDDM kcm.
Comment 1 Vlad Zahorodnii 2019-02-13 00:24:16 UTC
Hmm, can't reproduce. Popups are placed as expected.

Could you please post output of WAYLAND_DEBUG=1 systemsettings5?
Comment 2 Patrick Silva 2019-02-13 01:11:26 UTC
Created attachment 118026 [details]
debug
Comment 3 Vlad Zahorodnii 2019-02-13 09:38:54 UTC
Oh, darn, sorry, that was a wrong command, it should be WAYLAND_DEBUG=1 kcmshell5 kcm_sddm
Comment 4 Patrick Silva 2019-02-13 13:09:41 UTC
Created attachment 118039 [details]
kcm_sddm debug
Comment 5 David Edmundson 2019-02-13 13:28:11 UTC
Thanks.

It is creating one toplevel and one popup which is exactly what it should be doing.

The positioner is set to:
[776724,403]  -> xdg_positioner@32.set_anchor_rect(1207, 534, 1, 1)

relative to the parent window - which based on your screenshot is exactly where the popup appears. Kwin is doing the right thing with the information supplied.

Seems we have a Qt bug to fix
Comment 6 Martin Flöser 2019-02-13 17:16:17 UTC
Setting to upstream (Qt) based on investigation.
Comment 7 David Edmundson 2019-02-13 17:26:30 UTC
The policy I enforce on plasma (outside kwin) is that we can only mark something as upstream in Qt once we've made a bug report in Qt.

I'll move it to the SDDM KCM so it gets out of kwin and stays in my queue.
Comment 8 David Edmundson 2019-02-13 17:28:30 UTC
Btw, I was able to reproduce it on my setup. I think only on second activation, maybe QToolButton isn't updating the menu position at the exact right time.
Comment 9 Patrick Silva 2019-03-07 16:20:57 UTC
Created attachment 118630 [details]
misplaced dropdown in "default applications" kcm

Dropdown in "default applications" kcm is also misplaced after I maximize the window.
Is such bug related to this report?
Comment 10 Patrick Silva 2020-06-14 00:13:01 UTC
cannot reproduce.

Operating System: Arch Linux 
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0