Closed neilbags closed 4 years ago
Does this have a potential to go into an infinite loop? I haven't researched pyi3 much, but if this ends up failing every time I could see the loop going infinite into 100% CPU usage. Might be better to fail hard after a series of fails, or just idle a bit before asking for windows again.
Yeah I'm seeing that as well. It would be safer to use sleep(0.01)
instead of continue
and have a counter that stops the function after a timeout or a few iterations. Then, if the timeout is reached, just exit the function and don't do anything with the window orientation.
It's not perfect, but good enough until someone get's around to porting to i3ipc-python.
Hi again! Have a look at the recent changes due to #26. I don't think this should be needed anymore, so I'm closing it. Thanks for all the work you did here!
Workaround for issue https://github.com/olemartinorg/i3-alternating-layout/issues/15