Bug 454358 - Opened menu detaches when moving app's window for some apps on XWayland
Summary: Opened menu detaches when moving app's window for some apps on XWayland
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.25.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2022-05-24 19:45 UTC by postix
Modified: 2024-06-12 10:52 UTC (History)
1 user (show)

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


Attachments
Screen recording (1.37 MB, video/x-matroska)
2022-05-24 19:45 UTC, postix
Details
WAYLAND_DEBUG=1 /usr/bin/deadbeef (5.33 KB, text/plain)
2022-05-25 09:30 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2022-05-24 19:45:50 UTC
Created attachment 149182 [details]
Screen recording

STEPS TO REPRODUCE
1.  Open DeaDBeeF-1.8.8 (music player)
2.  Click on any menu item like "File"
3.  Move the main window of the application

OBSERVED RESULT
The menu window stays where it was opened, while the app's window is dragged to another place.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220522
KDE Plasma Version: 5.24.5 + also with kwin git master
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Kernel Version: 5.17.9-1-default (64-bit)
Graphics Platform: Wayland
Comment 1 Vlad Zahorodnii 2022-05-25 06:39:44 UTC
Please post the output of WAYLAND_DEBUG=1 %deadbeaf command%
Comment 2 postix 2022-05-25 09:30:32 UTC
Created attachment 149202 [details]
WAYLAND_DEBUG=1 /usr/bin/deadbeef

(In reply to Vlad Zahorodnii from comment #1)
> Please post the output of WAYLAND_DEBUG=1 %deadbeaf command%

Unfortunately I only get the normal application log and no wayland debug info.
Comment 3 Bug Janitor Service 2022-06-09 04:35:42 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 postix 2022-06-16 15:06:53 UTC
I can now reproduce  the issue on 

Operating System: openSUSE Tumbleweed 20220613
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Kernel Version: 5.18.2-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series

with the VLC 3.0.17.4. Unfortunately, `WAYLAND_DEBUG=1 /usr/bin/vlc` does not help here too.
Comment 5 postix 2022-06-16 15:08:23 UTC
and also with PyCharm 2022.1 etc. Probably all apps running in XWayland are affected?
Comment 6 Bug Janitor Service 2022-07-01 04:37:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2022-07-16 04:36:56 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 8 postix 2022-07-16 09:21:46 UTC
Can still reproduce it easily. Can no one else reproduce it?
Comment 9 postix 2022-07-16 09:25:03 UTC
I can also reproduce it on Fedora 36 with Plasma 5.25.3.
Comment 10 postix 2022-07-16 10:59:22 UTC
Not reproducible under kWin 5.25.3 X11.
Comment 11 Vlad Zahorodnii 2024-06-12 10:52:06 UTC
If the app runs via xwayland, this bug is unfixable, unfortunately. because x11 popups are just override redirect windows, kwin has knowledge whether to keep the popup attached to the parent window or whether it should be dismissed at all.
 
on wayland, there were some fixes that should have fixed popups potentially detaching from the parent window.