diff --git a/src/keyboard.c b/src/keyboard.c
index d990e3691e7854d011672527062f9d51fc7ede70..5042af2a3648e9e0b1237e54b44de3fda42cb8a4 100644 (file)
--- a/src/keyboard.c
+++ b/src/keyboard.c
#include "command.h"
#include "ncmpc.h"
#include "ncmpc_curses.h"
+#include "screen.h"
#include "Compiler.h"
#include <glib.h>
static command_t
get_keyboard_command(void)
{
- return translate_key(wgetch(stdscr));
+ return translate_key(wgetch(screen.main_window.w));
}
static gboolean