mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-02-21 16:22:49 +00:00
Bugfix: Tolerate removal of monitor while extension is disabled
NPE in setMonitor if old monitor was gone on enable. Eg. suspend, disconnect monitor, resume
This commit is contained in:
parent
9287b349df
commit
b01d21484f
@ -180,7 +180,9 @@ class Space extends Array {
|
||||
let oldSpace = oldSpaces.get(workspace);
|
||||
this.targetX = 0;
|
||||
if (oldSpace) {
|
||||
monitor = Main.layoutManager.monitors[oldSpace.monitor.index];
|
||||
let oldMonitor = Main.layoutManager.monitors[oldSpace.monitor.index];
|
||||
if (oldMonitor)
|
||||
monitor = oldMonitor;
|
||||
}
|
||||
this.setMonitor(monitor, false);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user