Closed HeySora closed 2 years ago
Replacing {visible, display}
with { 'is-visible': visible, display: display }
now makes this error appear only on the unfocused monitor. The focused monitor will have all spaces but without any application inside.
It's the same issue as #253, if you pull the master you shouldn't have this error anymore. :)
This happens consistently, with SIP disabled, and the official yabai version.
It sometimes happens with SIP enabled and the donaldguy fork, but quickly disappears in less than a second.
I did
console.log(spaces)
andconsole.log(spaces.find(({ visible, display }) => visible && display === displayIndex))
just above the erroring line, the two results are :So the issue is that spaces.find(...) returns
undefined