| Summary: | Global menu disappesrs when application moved to second monitor | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | prasad <hema_prasad> |
| Component: | Global Menu widget | Assignee: | Kai Uwe Broulik <kde> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | d, hema_prasad, mvourlakos, plasma-bugs-null, rplanchuelo, silocoder |
| Priority: | NOR | ||
| Version First Reported In: | 5.22.4 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | mp4 demonstrating the issue | ||
|
Description
prasad
2020-04-22 11:24:36 UTC
The issue also happens if any application on second monitor becomes active. when an application on second monitor gets clicked and becomes active, global menu in panel disappears. Created attachment 134601 [details]
mp4 demonstrating the issue
Any workarounds?
SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.10
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Kernel Version: 5.8.0-33-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 15.6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
I have what I believe is a good workaround. Just add a 2nd Panel to the 2nd monitor with the Global Menu widget and any other widgets desired. This way the application's menu in the 2nd monitor will show. Same bug in Operating System: Arch Linux KDE Plasma Version: 5.22.4 KDE Frameworks Version: 5.85.0 Qt Version: 5.15.2 Kernel Version: 5.13.13-arch1-1 (64-bit) Graphics Platform: X11 Graphics Processor: Mesa Intel® HD Graphics 620 This is kind of a feature rather than a bug. Global Menu applet filters windows (technically, tasks) by screen, so it only "sees" what's on its own screen. I also found myself sometimes being annoyed by this behavior. I guess we could make it configurable instead. I can understand the dilemma, but technically only 1 application can ever be active at one time, even with multiple displays, and global menu is supposed to display the active application, so shouldn't that mean that it respects any running application even if it's on another screen? If you look at how for example Apple does it in macos, which is what I suspect Global Menu is an attempt at replicating, the top menu bar (and it's "global menu") in macos always shows the menu for the active application no matter what screen it's on. As for the workaround, forcing the creation of additional panels on secondary screens is not a good solution because it means you have to spend time setting up your secondary monitors, adds complexity to a setup, and can cause other unintended side effects. If you happen to unplug an external monitor with a global menu panel on it, the panel and thus the global menu still lives somewhere in the void and you can then never remove that widget without hacking the KDE configuration! If you replug the same monitor you will in most cases see the panel again, but if kde does not recognise the monitor for some reason or if your monitor breaks, you're screwed - i had this issue before where I lost panels with global menu widgets on them in the void and had to hack the config files. So my suggestion would be to just emulate the macos solution, since I guess that's the basis for global menu anyway. |