Commit 68cca3aa authored by Javad Rahmatzadeh's avatar Javad Rahmatzadeh
Browse files

fix looking glass recursion

parent d1ab2813
......@@ -9,6 +9,7 @@ We go to the next version after each release on [GNOME Shell Extensions website]
### Fixed
- Dash app button visibility height.
- Looking glass recursion.
## [21.0.0 Reynolds] - 2022-08-06
......
......@@ -1672,8 +1672,8 @@ var API = class
_fixLookingGlassPosition()
{
let lookingGlassProto = this._lookingGlass.LookingGlass.prototype;
if (!this._originals['lookingGlassResize']) {
if (this._originals['lookingGlassResize'] === undefined) {
this._originals['lookingGlassResize'] = lookingGlassProto._resize;
}
......@@ -1689,18 +1689,18 @@ var API = class
return;
}
const Main = this._main;
if (lookingGlassProto._oldResize === undefined) {
lookingGlassProto._oldResize = this._originals['lookingGlassResize'];
}
lookingGlassProto._resize = function () {
let panelHeight = Main.layoutManager.panelBox.height;
this._oldResize();
this._targetY -= panelHeight;
this._hiddenY -= panelHeight;
};
const Main = this._main;
lookingGlassProto._resize = function () {
let panelHeight = Main.layoutManager.panelBox.height;
this._oldResize();
this._targetY -= panelHeight;
this._hiddenY -= panelHeight;
};
}
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment