Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

fix: don't barf with a null metaWindow #14

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tiling.js
Original file line number Diff line number Diff line change
Expand Up @@ -3271,6 +3271,9 @@ function slurp(metaWindow) {
}

function barf(metaWindow) {
if (!metaWindow)
return;

let space = spaces.spaceOfWindow(metaWindow);
let index = space.indexOf(metaWindow);
if (index === -1)
Expand Down