pulsemixer
pulsemixer copied to clipboard
fix resizing upon winch events
shutil.get_terminal_size
doesn't seem to update when threading is
involved so just use os.get_terminal_size
instead.
I'm using: GNU/Linux (Arch distro) Python 3.8.1 pulsemixer 1.5.1
I've tried using several terminal emulators, with and without tmux, and in each of these scenarios pulsemixer refuses to resize when I resize my terminal emulator window or tmux pane. This is a pretty simple fix, so hopefully it's acceptable.
I don't seem to encounter this issue with either the old or the new version. Maybe it was fixed at some later Python version? I'm using Python 3.8.2.
I'm now using Python 3.8.4 and still encountering this issue, so it doesn't seem to have been fixed through Python itself. This could be a Wayland issue, I'll try it on X11.
Good point. I'm on X11.
Just tried this on XFCE4: issue occurs without patch, but doesn't occur with patch
This has been resolved on my system for a while now. I don't know when it was fixed or what the root cause was, but I'll close this anyhow.