Firefox deliberately ignores the "about-to-show" event and only updates its menus in response to "opened".
There was an unused slot to send an "opened" event. Use that and place the updateMenu call inside.
Also use an UniqueConnection.
Details
Details
- Reviewers
davidedmundson fvogt - Group Reviewers
Plasma - Commits
- R120:b711b7073fd5: [DBusMenuImporter] Send "opened" signal alongside about to show
Firefox window decoration menu buttons seem to work mostly fine now. Didn't notice any issues with other already working apps. If someone could test whether Electron apps still behave well with it. Global menu applet needs an additional patch for Firefox to work correctly with it.
Diff Detail
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
libdbusmenuqt/dbusmenuimporter.cpp | ||
---|---|---|
433–434 | This needs to be a unique connection see https://phabricator.kde.org/D5706 (which might mean moving updateMenu into slotMenuAboutToShow) |