Bug 376008

Summary: Title Bar Button on the right side of the window, displays the menu outside the screen.
Product: [Plasma] kwin Reporter: Quiralta <rjquiralte>
Component: appmenuAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: andrew.crouthamel, ghavamikia, kde, me, nate, notuxius, plasma-bugs, saligari
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Menu unfolding on the wrong direction

Description Quiralta 2017-02-04 16:35:27 UTC
Created attachment 103827 [details]
Menu unfolding on the wrong direction

When the "tittle bar button" for the menu is placed on the right side, the menu tends to show outside the screen, hovering the mouse a couple of times sometimes brings the menus back to the left side, but does it in a erratic way.

It seems as if at times the menu direction will follow the mouse position on the menu entries, yet as mentioned above, is erratic, working and not working at times.

The ideal behavior would be that if the button is placed on the right, all the menus should unfold to the left, automatically. and vise versa.

I have a picture showing the problem.
Comment 1 Alexander Mentyu 2018-01-28 13:25:14 UTC
Can reproduce this bug in:

Plasma: 5.11.5
Apps: 17.12.1
Qt: 5.10.0
Frameworks: 5.42.0
Kernel: 4.14.14-1-MANJARO
Comment 2 Andrew Crouthamel 2018-02-01 14:47:39 UTC
I was about to submit the same bug.

Reproducible on 5.11.5 on Arch Linux like Alexander.
Comment 3 trmdi 2018-10-23 15:49:21 UTC
*** Bug 400207 has been marked as a duplicate of this bug. ***
Comment 4 Chris Escargot 2020-07-09 17:15:44 UTC
In the screenshot it seems like it's on the panel(?), but it's the same if it's on the title bar. Only shows menu on it's right. I think perhaps the way to deal with it would be for it to know screen edges, like right clicking on the desktop know whether it should display the menu on the right/left or where to spawn the submenus.
Comment 5 ratijas 2022-09-22 23:06:39 UTC
Can confirm. The title bar menu does not respect screen borders most of the time (not always though).

The screenshot is a bit confusing, but it's actually as the bug title says it: a title bar button, not a Global Menu applet on a panel. Moving to KWin / appmenu accordingly.
Comment 6 David Edmundson 2023-06-13 22:09:53 UTC

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