mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
8
panel.js
8
panel.js
@@ -70,6 +70,11 @@ const dtpPanel = new Lang.Class({
|
||||
this._setPanelPosition();
|
||||
}));
|
||||
|
||||
// this is to catch changes to the window scale factor
|
||||
this._ScaleFactorListener = St.ThemeContext.get_for_stage(global.stage).connect("changed", Lang.bind(this, function () {
|
||||
this._setPanelPosition();
|
||||
}));
|
||||
|
||||
// The main panel's connection to the "allocate" signal is competing with this extension
|
||||
// trying to move the centerBox over to the right, creating a never-ending cycle.
|
||||
// Since we don't have the ID to disconnect that handler, wrap the allocate() function
|
||||
@@ -183,6 +188,9 @@ const dtpPanel = new Lang.Class({
|
||||
if(this._MonitorsChangedListener !== null) {
|
||||
global.screen.disconnect(this._MonitorsChangedListener);
|
||||
}
|
||||
if(this._ScaleFactorListener !== null) {
|
||||
St.ThemeContext.get_for_stage(global.stage).disconnect(this._ScaleFactorListener);
|
||||
}
|
||||
this.panel.actor.set_height(this._oldPanelHeight);
|
||||
this.panelBox.set_anchor_point(0, 0);
|
||||
Main.overview._overview.remove_child(this._myPanelGhost);
|
||||
|
||||
Reference in New Issue
Block a user