From: Max Kellermann Date: Sat, 3 Oct 2009 21:58:10 +0000 (+0200) Subject: main: clear mpdclient.events in end_input_event() X-Git-Tag: release-0.16~177 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b1d4c2a7661dedae38c3036987d5d1c642d2c14e;p=ncmpc.git main: clear mpdclient.events in end_input_event() The events bit mask should be cleared after every screen_update() call. --- diff --git a/src/main.c b/src/main.c index a8643a3..f874d62 100644 --- a/src/main.c +++ b/src/main.c @@ -252,7 +252,6 @@ timer_mpd_update(gpointer data) #endif screen_update(mpd); - mpd->events = 0; return GPOINTER_TO_INT(data); @@ -265,6 +264,7 @@ void begin_input_event(void) void end_input_event(void) { screen_update(mpd); + mpd->events = 0; } int do_input_event(command_t cmd)