Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu applet: Fix bug where menu is partly behind panel #11788

Merged
merged 2 commits into from
Aug 7, 2023
Merged

Menu applet: Fix bug where menu is partly behind panel #11788

merged 2 commits into from
Aug 7, 2023

Conversation

fredcw
Copy link
Contributor

@fredcw fredcw commented Jul 24, 2023

Use more accurate method to determine when panel is visible in panel.js

Call peekPanel() before toggling menu open to ensure menu is positioned correctly.

_updateKeybinding() is also the correct place to call peekPanel() anyway because it's only needed when menu is opened with key-press.

Fixes #10970, #11035, #11429, #11547, linuxmint/mint21.2-beta#49

Fixes linuxmint/cinnamon-spices-applets#4964

Call peekPanel() before toggling menu open to ensure menu is positioned correctly.
this._shouldShow is set to false when mouse leaves auto-hide panel even if panel remains open due to an applet being open so use !this._hidden instead.
@fredcw
Copy link
Contributor Author

fredcw commented Jul 27, 2023

Replaces PR #11770

@mtwebster mtwebster merged commit a80336b into linuxmint:master Aug 7, 2023
2 of 3 checks passed
@fredcw fredcw deleted the menubehindpanel branch August 8, 2023 20:15
mtwebster pushed a commit that referenced this pull request Aug 20, 2023
* Fix bug where menu is partly behind panel

Call peekPanel() before toggling menu open to ensure menu is positioned correctly.

* panel.js: Use better method to determine when panel is visible.

this._shouldShow is set to false when mouse leaves auto-hide panel even if panel remains open due to an applet being open so use !this._hidden instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants