diff options
author | Max Kellermann <max@duempel.org> | 2008-09-19 08:02:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-19 08:02:40 +0200 |
commit | 9ed50c768c9169fd6b968a91edeb161694cf9fcf (patch) | |
tree | 2c97b11bbe5f3500f7b33a37ec2e86586e05c6d7 /src/easy_download.h | |
parent | 5fa6d11cc8b1a22456ec90416089e2f40a9f1763 (diff) | |
download | mpd-9ed50c768c9169fd6b968a91edeb161694cf9fcf.tar.gz mpd-9ed50c768c9169fd6b968a91edeb161694cf9fcf.tar.xz mpd-9ed50c768c9169fd6b968a91edeb161694cf9fcf.zip |
fix terminal resizing (SIGWINCH)
When I replaced ncmpc's old main loop with g_main_loop from libglib,
SIGWINCH (i.e. window resizing) stopped working. This regression was
caused by the fact that ncurses' wgetch() function was only called
when there was actually data on STDIN. wgetch() has several side
effects besides reading data from STDIN, for example it checks whether
there has been a window resize.
Fix this with a custom SIGWINCH handler.
Diffstat (limited to 'src/easy_download.h')
0 files changed, 0 insertions, 0 deletions