Skip to content

Commit

Permalink
Fix panel intellihide mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Jun 19, 2022
1 parent 95c1fa4 commit 9633212
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/ui/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2645,7 +2645,7 @@ Panel.prototype = {

_onFocusChanged: function() {
if (global.display.focus_window && this._focusWindow !== undefined &&
this._focusWindow == global.display.focus_window.get_compositor_private())
this._focusWindow == global.display.focus_window)
return;

this._signalManager.disconnect("position-changed");
Expand All @@ -2654,7 +2654,7 @@ Panel.prototype = {
if (!global.display.focus_window)
return;

this._focusWindow = global.display.focus_window.get_compositor_private();
this._focusWindow = global.display.focus_window;
this._signalManager.connect(this._focusWindow, "position-changed", this._updatePanelVisibility, this);
this._signalManager.connect(this._focusWindow, "size-changed", this._updatePanelVisibility, this);
this._updatePanelVisibility();
Expand Down
9 changes: 9 additions & 0 deletions src/cinnamon-wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ enum
MAP,
DESTROY,
SWITCH_WORKSPACE,
SWITCH_WORKSPACE_COMPLETE,
KILL_SWITCH_WORKSPACE,
KILL_WINDOW_EFFECTS,
SHOW_TILE_PREVIEW,
Expand Down Expand Up @@ -124,6 +125,13 @@ cinnamon_wm_class_init (CinnamonWMClass *klass)
0,
NULL, NULL, NULL,
G_TYPE_NONE, 0);
cinnamon_wm_signals[SWITCH_WORKSPACE_COMPLETE] =
g_signal_new ("switch-workspace-complete",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
NULL, NULL, NULL,
G_TYPE_NONE, 0);
cinnamon_wm_signals[KILL_WINDOW_EFFECTS] =
g_signal_new ("kill-window-effects",
G_TYPE_FROM_CLASS (klass),
Expand Down Expand Up @@ -227,6 +235,7 @@ cinnamon_wm_completed_switch_workspace (CinnamonWM *wm)
{
g_debug ("%s", G_STRFUNC);
meta_plugin_switch_workspace_completed (wm->plugin);
g_signal_emit (wm, cinnamon_wm_signals[SWITCH_WORKSPACE_COMPLETE], 0);
}

/**
Expand Down

0 comments on commit 9633212

Please sign in to comment.