mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
panel: Disable menu-toggle shortcuts while top bar is hidden
We currently handle the case where the indicator itself is disabled (read: hidden), but not when the entire top bar is invisible (for instance when the primary monitor is in fullscreen state). It is odd to pop up a top bar menu without the top bar, so check for the indicator's mapped- instead of visible state. https://gitlab.gnome.org/GNOME/gnome-shell/issues/2002
This commit is contained in:
parent
d1f87ca115
commit
4f66b301e7
1 changed files with 1 additions and 1 deletions
|
|
@ -962,7 +962,7 @@ class Panel extends St.Widget {
|
|||
}
|
||||
|
||||
_toggleMenu(indicator) {
|
||||
if (!indicator || !indicator.container.visible)
|
||||
if (!indicator || !indicator.mapped)
|
||||
return; // menu not supported by current session mode
|
||||
|
||||
let menu = indicator.menu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue