Bug 431018 - [Wayland Only] The "Add Panel" right click menu option spawns in a random place
Summary: [Wayland Only] The "Add Panel" right click menu option spawns in a random place
Status: RESOLVED DUPLICATE of bug 417378
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
: 431558 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-01-01 00:02 UTC by Bruno Guedes
Modified: 2021-03-20 02:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
the bug (254.15 KB, image/png)
2021-01-01 00:08 UTC, Bruno Guedes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Guedes 2021-01-01 00:02:42 UTC
SUMMARY

the "Add Panel" option on the right click menu of the plasma panel spawns in a random place in a different window and when the mouse hovers out of the "Add Panel" option the entire menu closes making it impossible to click in any option above the "Add Panel" one.


STEPS TO REPRODUCE
1. right click in the plasma panel
2. hover the mouse over the add panel option
3. see that the option open in a separate window
4. hover the mouse out of the "Add Panel" option (up or down. So that the cursor is still hover the right click menu) and the menu will close automatically making it impossible to click in any option above the "Add Panel" one.

OBSERVED RESULT
the "Add Panel" options open in a different window and closes the entire menu when the mouse cursor leaves the "Add Panel" option even if it is still on the menu, but hover another option. 

EXPECTED RESULT

the "Add Panel" 's sub-options should be by the side of the menu and the menu should not close when the cursor is still hover it

SOFTWARE/OS VERSIONS

Operating System: Manjaro Linux
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.9.16-1-MANJARO
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 7,2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
ADDITIONAL INFORMATION
Comment 1 Bruno Guedes 2021-01-01 00:08:23 UTC
Created attachment 134428 [details]
the bug

the mouse is over the "Add Panel" but the window appear in the top of the screen
Comment 2 Nate Graham 2021-01-05 03:57:42 UTC
Huh, I thought we fixed this.
Comment 3 Bruno Guedes 2021-01-12 17:23:38 UTC
After today's update it kind of works.
Previously it would always be buggy. And now it works in some cases.
If the last thing you clicked was the desktop or the plasma panel it works.

But if you clicked in another window and immediately after right click in the plasma panel, the add panels sub-memu will appear in another window.

And there is another way of triggering this bug that I don't know if is related.
If you open konsole and run a command that takes some time. Like e.g. "sleep 10", while the command is running, the bug will also trigger.
Comment 4 personalizedrefrigerator 2021-01-13 17:59:33 UTC
*** Bug 431558 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2021-01-13 20:22:35 UTC
*** Bug 431558 has been marked as a duplicate of this bug. ***
Comment 6 Vlad Zahorodnii 2021-01-14 07:44:22 UTC
Can't do anything about it on the kwin side, Qt creates an xdg_toplevel surface for the popup, therefore it's subject to the placement policies. When the popup is created, it needs to have a proper parent window.
Comment 7 Nate Graham 2021-03-20 02:58:26 UTC

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