Summary: | Global Menu sometimes shows menu from non-active app | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Sadi <sadiyumusak> |
Component: | Global Menu widget | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | kde, mvourlakos, nate |
Priority: | NOR | ||
Version First Reported In: | 5.27.7 | ||
Target Milestone: | 1.0 | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/7387547112e1a00aca294861abee666de3fbd68f | Version Fixed In: | 6.4.0 |
Sentry Crash Report: | |||
Attachments: |
Global Menu still showing Elisa menu after it's minimized while Window Title area becomes blank
Window Title displaying Elisa only when its window is active MacOS Ventura with the same orphan menu problem |
Description
Sadi
2023-08-24 08:32:33 UTC
When it's in this state, is another app active? Or is Plasma itself active? (In reply to Nate Graham from comment #1) > When it's in this state, is another app active? Or is Plasma itself active? Case 1: AFAIK it happens only during login when Elisa starts from an autostart script that merely launches the app, waits 2 seconds, and then executes: xdotool windowminimize `xdotool getactivewindow` At this time there's no active app window, although there are some other apps minimized or closed to system tray (unfortunately Elisa doesn't have these features ; -) Naturally, it doesn't happen when Elisa minimized resulting in another open app window automatically takes over the active state. Case 2: It happens when there is another app window open. Apparently, Global Menu applet either doesn't realize that Synaptic is the new active app window, or wrongly decides to keep the previous active app menu because it can't get any menu information from Synaptic. Created attachment 161255 [details]
Global Menu still showing Elisa menu after it's minimized while Window Title area becomes blank
Created attachment 161256 [details]
Window Title displaying Elisa only when its window is active
How strange. Thanks. I've just noticed that MacOS 13 (Ventura) oddly has the same problem, too - if this means anything. ;-) Created attachment 161620 [details]
MacOS Ventura with the same orphan menu problem
Git commit 7387547112e1a00aca294861abee666de3fbd68f by Vlad Zahorodnii. Committed on 23/04/2025 at 14:35. Pushed by vladz into branch 'master'. applets/appmenu: Fix displaying menu of the previous active window We need to break the DBusMenuImporter::menuUpdated() signal connection when the active window changes. Otherwise, it's possible that the menuUpdated signal will be emitted and the menu will be marked as available. M +63 -52 applets/appmenu/plugin/appmenumodel.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/7387547112e1a00aca294861abee666de3fbd68f |