Code

keyboard: call wgetch() on main window
[ncmpc.git] / src / keyboard.c
index d990e3691e7854d011672527062f9d51fc7ede70..5042af2a3648e9e0b1237e54b44de3fda42cb8a4 100644 (file)
@@ -21,6 +21,7 @@
 #include "command.h"
 #include "ncmpc.h"
 #include "ncmpc_curses.h"
+#include "screen.h"
 #include "Compiler.h"
 
 #include <glib.h>
@@ -45,7 +46,7 @@ translate_key(int key)
 static command_t
 get_keyboard_command(void)
 {
-       return translate_key(wgetch(stdscr));
+       return translate_key(wgetch(screen.main_window.w));
 }
 
 static gboolean