Bug 417082 - Files on desktop can open multiple context menus at once on Wayland
Summary: Files on desktop can open multiple context menus at once on Wayland
Status: RESOLVED DUPLICATE of bug 379635
Alias: None
Product: plasmashell
Classification: Plasma
Component: Folder (show other bugs)
Version: 5.17.5
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-03 02:25 UTC by Ash
Modified: 2020-02-05 20:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing multiple context menus open after right-clicking on desktop icon (122.68 KB, image/png)
2020-02-03 02:25 UTC, Ash
Details
Screenshot showing context menu with window decorations after clicking with a focused window (152.96 KB, image/png)
2020-02-03 02:26 UTC, Ash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ash 2020-02-03 02:25:28 UTC
Created attachment 125636 [details]
Screenshot showing multiple context menus open after right-clicking on desktop icon

SUMMARY
On Wayland, when right-clicking files on the desktop to open a context menu, multiple context menus appear, with only the topmost one responding to interaction. If a window has focus, the first menu appears in the top-left with window decorations (similar to https://bugs.kde.org/show_bug.cgi?id=387597 ). I suspect these are both the same underlying issue, so I'm reporting them together - happy to change that!

STEPS TO REPRODUCE
1. Have some files in ~/Desktop, and have the desktop layout set to "Folder View"
2. With all applications minimised or unfocused, right-click on a desktop icon
3. Right-click on a still-exposed part of the icon (or another icon entirely)
4. Right-click on an empty portion of the desktop or focus a window to dismiss any context menus.
5. With a window focused, right-click on a desktop icon

OBSERVED RESULT
With no focused windows: Multiple context menus appear, overlapping. Only the topmost/most recent one can be interacted with. Actions that would usually close a context menu (left-clicking on the desktop or icons) are ineffective, and choosing an item in the menu only dismisses one at a time.
With a focused window: The window loses focus, and a context menu appears in the top-left corner with window decorations, like in https://bugs.kde.org/show_bug.cgi?id=387597 . Further context menus can be opened by right-clicking icons, but these do not appear with window decorations.

EXPECTED RESULT
The second right-click anywhere on the desktop or icons closes the active context menu, instead of opening another one - this is the behaviour of empty desktop space. In the case where the menu opens with window decorations, it should instead appear at the position of the mouse, without decorations.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon User 5.17
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.13.2

Also reproduced on
Linux/KDE Plasma: Arch Linux (rolling, up to date 2020-02-03)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Left-clicking on the desktop while one of these rouge context menus is open causes a "Delete" option to appear under "Move to Wastebin". Since a file isn't selected in this state, I'm not really game to see what it does.
Comment 1 Ash 2020-02-03 02:26:22 UTC
Created attachment 125637 [details]
Screenshot showing context menu with window decorations after clicking with a focused window
Comment 2 Patrick Silva 2020-02-03 17:26:48 UTC
Is seems duplicate/related of/to bug 379635
Comment 3 Patrick Silva 2020-02-03 17:51:58 UTC
It also seems related/duplicate to/of bug 383904
Comment 4 Nate Graham 2020-02-05 20:31:22 UTC
Yup.

*** This bug has been marked as a duplicate of bug 379635 ***