Skip to content

Commit

Permalink
docking: Fix allocation failure in GNOME 47 that completely broke the…
Browse files Browse the repository at this point in the history
… shell

Since this._container no longer exists (gnome-shell@b58119d5c6?) in
GNOME 47, allocating the entire overview would fail and the shell was
non-functional.

Fixes:
```
Gjs-CRITICAL **: 17:10:01.720: JS ERROR: TypeError: actor is undefined
findIndexForActor@resource:///org/gnome/shell/ui/layout.js:992:22
findMonitorForActor@resource:///org/gnome/shell/ui/layout.js:999:26
_prepareMainDash/<@file:///home/dan/.local/share/gnome-shell/extensions/[email protected]/docking.js:2233:52
@resource:///org/gnome/shell/ui/init.js:21:20
```
  • Loading branch information
vanvugt authored and 3v1n0 committed Jul 2, 2024
1 parent 55f8310 commit 9270a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docking.js
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ export class DockManager {
const oldPostAllocation = this._runPostAllocation;
this._runPostAllocation = () => {};

const monitor = Main.layoutManager.findMonitorForActor(this._container);
const monitor = Main.layoutManager.findMonitorForActor(container);
const workArea = Main.layoutManager.getWorkAreaForMonitor(monitor.index);
const startX = workArea.x - monitor.x;
const startY = workArea.y - monitor.y;
Expand Down

0 comments on commit 9270a6e

Please sign in to comment.