Bug 429451 - with external monitor attached to laptop, menus don't appear
Summary: with external monitor attached to laptop, menus don't appear
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.3
Platform: Fedora RPMs Linux
: NOR critical
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-21 14:26 UTC by Jason Priebe
Modified: 2022-01-09 21:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Priebe 2020-11-21 14:26:59 UTC
SUMMARY

When laptop is connected to an external monitor, menus won't open.


STEPS TO REPRODUCE
1. connect laptop to external monitor (it's possible that the displays need different scaling settings)
2. launch kmymoney
3. Click on the "Account" menu item in the menu bar
4. 
5.
OBSERVED RESULT

the account menu does not appear.  No menus will appear.  You can move kmymoney to the laptop display, and menus still do not appear.  The only way to get menus to appear again is to disconnect the external display.

EXPECTED RESULT

Menus should appear even with an external monitor connected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 32, Gnome 3.36.7 (About KDE in kmymoney doesn't have any version information that I can see)
Comment 1 Thomas Baumgart 2020-11-21 15:20:26 UTC
KDE version information can be found using 'About KMyMoney' and selecting the 'Libraries' tab.

Are you using Wayland or X? I am asking, because I am using my laptop with and without an external monitor and don't have any such issues (using X-Server on openSUSE).
Comment 2 Jack 2020-11-21 15:51:02 UTC
Does this problem happens for any other applications, specifically any other KDE applications?  I also wonder if the "global menu" setting somehow got turned on.
Comment 3 Jason Priebe 2020-11-23 03:03:59 UTC
KDE Frameworks 5.75.0
Qt 5.14.2 (built against 5.14.2)
The wayland windowing system

I haven't seen the problem with any other applications, but I don't use a ton of GUI applications under Linux, mostly just Chrome, terminal, and KMyMoney.

It really seems to be tied to the multi-monitor setup.  When I pull out the HDMI cable for my external monitor, KMyMoney is moved to the laptop screen, and the menus work as expected.

Where can I look for the global menu setting?
Comment 4 Jack 2020-11-25 01:07:43 UTC
To check for the use of global menus (where there is a single menu at the top of the screen for all (KDE) applications instead of the menu within each application) look in ~/.config/kmymoneyrc or ~/.config/kmymoney/kmymoneyrc for a line with Menubar=Disabled.  If it is present, delete it (with kmymoney closed.)  If that is not present, we need to keep looking for the culprit.

You might want to install another KDE application, at least temporarily, just to test.  You could try kwrite, for example.  Also, be sure you do not have the global menu widget installed on any panel on the desktop.
Comment 5 Bug Janitor Service 2020-12-10 04:34:36 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2020-12-25 04:34:26 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 7 Jason Priebe 2020-12-29 14:59:41 UTC
Sorry it took me so long to dig back into this.  I did not find the Menubar=Disabled in ~/.config/kmymoney/kmymoneyrc

I installed kwrite, and it exhibits the same behavior.  The menus work with no external monitor connected.  I connect an external monitor, and the menus won't drop down.

Just to be clear, the top-level menu items ("File", "Edit", "View", etc.) do appear at the top of the kmymoney application window.  It's just that they won't open when clicked on.
Comment 8 Jack 2020-12-29 15:56:22 UTC
Given it's not just KMyMoney, I wonder if we should reassign this to kwin?  Also - are you using xorg or wayland?
Comment 9 Jason Priebe 2021-01-04 16:14:50 UTC
I'm using wayland.

I'll defer to your judgement about assigning it to kwin.  I don't know enough about the project structure to have a meaningful opinion.
Comment 10 personalizedrefrigerator 2021-12-02 13:54:41 UTC
I'm experiencing this on Wayland with most Qt applications (if not all). For example, KWrite, etc.

Steps to reproduce:
 1. Connect external monitor.
 2. Set display mode to extend.
 3. Shift primary display lower than external display in "Display Settings"
 4. Open KWrite on primary display
 5. Click "File"

Observed behavior:
 • Menu is not just below the "File" button

Expected behavior:
 • Menu should be just below the "File" button

I'm running Manjaro Linux with Plasma 5.23.3 on Wayland. I don't think this happens on X11.
Comment 11 personalizedrefrigerator 2021-12-02 14:09:28 UTC
See also https://bugs.kde.org/show_bug.cgi?id=446097
Comment 12 David Edmundson 2022-01-09 21:32:33 UTC
That mostly sounds like: https://bugreports.qt.io/browse/QTBUG-85297

If we suspect a kwin bug please provide a wayland log showing the popup information being correct