From aea236d2f4b1897742236bb9be24040c0cc34ffd Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Fri, 29 May 2020 17:41:09 -0400 Subject: [PATCH] Fix missing secondary panel allocation --- panel.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/panel.js b/panel.js index bd07ca3..7e2bd99 100644 --- a/panel.js +++ b/panel.js @@ -145,7 +145,7 @@ var dtpPanel = Utils.defineClass({ this.cornerSize = 0; if (isStandalone) { - this.panel = new St.Widget({ name: 'panel', reactive: true }); + this.panel = new dtpSecondaryPanel({ name: 'panel', reactive: true }); this.statusArea = this.panel.statusArea = {}; Utils.wrapActor(this.panel); @@ -1403,8 +1403,21 @@ var dtpPanel = Utils.defineClass({ }, }); +var dtpSecondaryPanel = Utils.defineClass({ + Name: 'DashToPanel-SecondaryPanel', + Extends: St.Widget, + + _init: function(params) { + this.callParent('_init', params); + }, + + vfunc_allocate: function(box, flags) { + this.set_allocation(box, flags); + } +}); + var dtpSecondaryAggregateMenu = Utils.defineClass({ - Name: 'dtpSecondaryAggregateMenu', + Name: 'DashToPanel-SecondaryAggregateMenu', Extends: PanelMenu.Button, _init: function() {