mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Fix panelbox position on intellihide enable
This commit is contained in:
@@ -41,6 +41,7 @@ const MIN_UPDATE_MS = 250;
|
||||
const T1 = 'checkGrabTimeout';
|
||||
const T2 = 'limitUpdateTimeout';
|
||||
const T3 = 'postAnimateTimeout';
|
||||
const T4 = 'panelBoxClipTimeout';
|
||||
|
||||
var Hold = {
|
||||
NONE: 0,
|
||||
@@ -221,13 +222,13 @@ var Intellihide = Utils.defineClass({
|
||||
this._clipContainer = new Clutter.Actor();
|
||||
Utils.setClip(this._clipContainer, this._panelBox.x, this._panelBox.y, this._panelBox.width, this._panelBox.height);
|
||||
|
||||
Main.layoutManager.uiGroup.remove_actor(this._panelBox);
|
||||
this._panelBox.show();
|
||||
this._clipContainer.add_child(this._panelBox);
|
||||
this._panelBox.set_position(0, 0);
|
||||
|
||||
Main.layoutManager.removeChrome(this._panelBox);
|
||||
Main.layoutManager.addChrome(this._clipContainer, { affectsInputRegion: false });
|
||||
|
||||
this._clipContainer.add_child(this._panelBox);
|
||||
Main.layoutManager.trackChrome(this._panelBox, { affectsInputRegion: true });
|
||||
|
||||
this._timeoutsHandler.add([T4, 0, () => this._panelBox.set_position(0, 0)]);
|
||||
} else {
|
||||
this._panelBox.set_position(this._clipContainer.x, this._clipContainer.y);
|
||||
Main.layoutManager.removeChrome(this._clipContainer);
|
||||
|
||||
Reference in New Issue
Block a user