Bug 449777 - Parent menu disappears when a submenu opens in Wayland
Summary: Parent menu disappears when a submenu opens in Wayland
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 22.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-02-08 11:17 UTC by Patrick Silva
Modified: 2022-09-16 16:06 UTC (History)
4 users (show)

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


Attachments
screeen recording (1.25 MB, video/x-matroska)
2022-02-08 11:17 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-02-08 11:17:35 UTC
Created attachment 146427 [details]
screeen recording

SUMMARY
I can reproduce this bug with menus of Dolphin, Konsole, Ark, Gwenview and Kate.

STEPS TO REPRODUCE
1. use Wayland session
2. open Dolphin
3. if the menu bar is not enabled, enabled it by pressing ctrl+m
4. click in 'View' menu, hover over 'Stop' and wait for its tooltip
5. while the tooltip is visible, hover over 'Show panels' submenu below 'Sop': 'Show panels' submenu opens and closes immediately
6. hover over 'Location bar' submenu below 'Show panels' submenu

OBSERVED RESULT
'Location bar' submenu opens and the parent menu disappears. 
Watch the attached screen recording please.

EXPECTED RESULT
parent menu should not disappear when a submenu opens

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 1 Vlad Zahorodnii 2022-02-08 11:31:55 UTC
It looks like the view submenu is destroyed, the view menu still responds to input because kwin sends pointer input to the main dolphin window and qt redirects input internally. Moving to dolphin. If dolphin doesn't hide it, then it's definitely a qtwayland bug.
Comment 2 Vlad Zahorodnii 2022-02-08 11:32:37 UTC
It looks like the view menu is destroyed*
Comment 3 Nate Graham 2022-02-08 17:09:55 UTC
Can reproduce with current git master on Fedora 35.
Comment 4 Felix Ernst 2022-02-09 11:09:09 UTC
(In reply to Vlad Zahorodnii from comment #1)
>Moving to dolphin.

Patrick Silva says he "can reproduce this bug with menus of Dolphin, Konsole, Ark, Gwenview and Kate."

>If dolphin doesn't hide it, then it's definitely a qtwayland bug.

I don't think Dolphin hides it. I am not aware of anything interesting happening in the menu bar menus of Dolphin and I also did a crude search to confirm.

It kind of looks like the disappearing of the tooltip triggers the destruction of the menus. The hiding happens here https://invent.kde.org/frameworks/kxmlgui/-/blob/master/src/ktooltiphelper.cpp#L150 but that shouldn't have any side-effects. There hasn't been any non-style changes in that file for 7 month anyway so I don't think that's the issue.
Comment 5 Patrick Silva 2022-09-16 16:06:27 UTC
Cannot reproduce.

Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Graphics Platform: Wayland