check if _grabHelperStack exists, no longer available in gnome 42

This commit is contained in:
Philipp Unger
2022-03-26 16:34:54 +01:00
parent 636c0a4399
commit 1da00cf53f

View File

@@ -335,7 +335,7 @@ var Intellihide = Utils.defineClass({
},
_checkIfGrab: function() {
if (GrabHelper._grabHelperStack.some(gh => gh._owner == this._dtpPanel.panel.actor)) {
if (GrabHelper._grabHelperStack && GrabHelper._grabHelperStack.some(gh => gh._owner == this._dtpPanel.panel.actor)) {
//there currently is a grab on a child of the panel, check again soon to catch its release
this._timeoutsHandler.add([T1, CHECK_GRAB_MS, () => this._queueUpdatePanelPosition()]);