Bug 482835 - Right click on a widget may launch the contextual menu as a regular window
Summary: Right click on a widget may launch the contextual menu as a regular window
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-08 08:51 UTC by Andrey Voeiko
Modified: 2024-03-11 04:20 UTC (History)
5 users (show)

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


Attachments
Example of different behaviour of the menu depending on which window is focused (778.17 KB, video/webm)
2024-03-08 08:51 UTC, Andrey Voeiko
Details
Custom menu behaves as intented (552.97 KB, video/webm)
2024-03-08 08:52 UTC, Andrey Voeiko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Voeiko 2024-03-08 08:51:20 UTC
Created attachment 166686 [details]
Example of different behaviour of the menu depending on which window is focused

SUMMARY
The right-click menu for widget configuration behaves strangely:
- when a regular window (e. g. Firefox, Dolphin, System settings) is focused, the menu is opened as a regular window (with window decorations and placed by KWin according to settings)
- when the focused window is created by the Plasma shell itself (such as widget configuration window), the menu looks normal, but is placed under the window, while it should by placed above the widget
- when no window is focused (after a click on the desktop), menu behaves as intended
(attached video)

This is related only to the default contextual menu. Custom menu for a widget (such as a menu for the Task manager button)
work normal


STEPS TO REPRODUCE
1. Focus a window
2. Right click a widget with a default menu (such as Virtual desktop switch)
3. See the result

OBSERVED RESULT
Contextual menu launches as a regular window with decorations and placed according to the KWin settings (meaning if KWin is set up to put windows in center, the menu will appear there)

EXPECTED RESULT
Contextual menu should look and behave as a contextual menu

SOFTWARE/OS VERSIONS
Arch Linux
Linux/KDE Plasma: 6.0.1
KDE Plasma Version: 6.0.1
KDE Frameworks Version:  6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Andrey Voeiko 2024-03-08 08:52:19 UTC
Created attachment 166688 [details]
Custom menu behaves as intented
Comment 2 Nate Graham 2024-03-10 04:59:51 UTC
This is on Wayland, I assume?
Comment 3 Andrey Voeiko 2024-03-10 06:49:30 UTC
(In reply to Nate Graham from comment #2)
> This is on Wayland, I assume?

Yes, this is on Wayland
Comment 4 Nate Graham 2024-03-10 21:56:43 UTC
Thanks. I can't reproduce this at all.
Comment 5 Andrey Voeiko 2024-03-11 04:20:55 UTC
(In reply to Nate Graham from comment #4)
> Thanks. I can't reproduce this at all.

I've checked this out. I works fine. Maybe a reboot solved it, as I just logged-out-logged-in after I updated to 6.0.