Closed tewkanz closed 1 year ago
I'm having trouble reproducing this. Can you give me a series of steps? (as in open two windows, make one floating, zoom into the other...) Or a video?
I tried having one tiled and one floating window - and could'nt reproduce even if the floating window left the screen during zoom.
I tried having only a floating window and wasn't really able to move the window out of the screen by zooming...
Sorry, it turns out the viewport piece of it was a red herring. It seems to just happen if I zoom in enough on a floating window while it has focus.
https://user-images.githubusercontent.com/5669979/196012069-53ee8811-a184-44dd-88e4-1eddd99cadb8.mp4
The video doesn't show much, haha, but newm is frozen at that point
If I zoom while a floating window is showing, and it causes the floating window to move off screen, newm will hang. In the logs, there will be an endless series of the following error:
Sounds like we're assuming the focused window will always be on screen after a zoom, which is usually true since we move back to the focused window after a zoom ends.
Full logs attached as well. newm_log_divide_by_zero.log