Code

main: do_input_event() returns bool
[ncmpc.git] / src / keyboard.c
index 226306cf7543fc1823fb167b115baa2ad54f7c03..5bd43e573ab3e173b26542ccbf676418068cf778 100644 (file)
@@ -35,7 +35,7 @@ keyboard_event(gcc_unused GIOChannel *source,
 
        command_t cmd = get_keyboard_command();
        if (cmd != CMD_NONE)
-               if (do_input_event(cmd) != 0)
+               if (!do_input_event(cmd))
                        return FALSE;
 
        end_input_event();