Skip to content

Commit 13c8676

Browse files
authored
panel.js: always show panel when highlighted (#12929)
1 parent c84faa3 commit 13c8676

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

js/ui/panel.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,6 +2087,7 @@ Panel.prototype = {
20872087
this._hidden = false;
20882088
this._disabled = false;
20892089
this._panelEditMode = false;
2090+
this._highlighted = false;
20902091
this._autohideSettings = null;
20912092
this._destroyed = false;
20922093
this._positionChanged = false;
@@ -2405,8 +2406,8 @@ Panel.prototype = {
24052406

24062407
this.actor.change_style_pseudo_class('highlight', highlight);
24072408

2408-
if (highlight)
2409-
this.peekPanel();
2409+
this._highlighted = highlight;
2410+
this._updatePanelVisibility();
24102411
},
24112412

24122413
/**
@@ -3685,7 +3686,7 @@ Panel.prototype = {
36853686
* true = autohide, false = always show, intel = Intelligent
36863687
*/
36873688
_updatePanelVisibility: function() {
3688-
if (this._panelEditMode || this._peeking || this._panelHasOpenMenus())
3689+
if (this._panelEditMode || this._highlighted || this._peeking || this._panelHasOpenMenus())
36893690
this._shouldShow = true;
36903691
else {
36913692
switch (this._autohideSettings) {

0 commit comments

Comments
 (0)