Closed L4a1n closed 5 months ago
What if there were no monitors found, like the original warning said, and the list of monitors is empty? Accessing element 0 would not work in that case.
Youre right. Ill think of something else...
Hey I was facing the same issue (there are monitors but no primary is set), and applying this fixes it.
Also, isn't the if self.monitors
check redundant because get_monitors()
always returns a non-empty list?
In the rare case, where there are monitors but no primary is set it cant start since it just continues without any set monitors.... so I fixed it by using the very first it gets.... I will probably make it a little bit "prettier" but for now it works!