Only test for redraw key if it is actually configured

This should make CTRL-Space work by default.
This commit is contained in:
Marc André Tanner 2016-01-31 11:53:43 +01:00
parent 5b9fcf5e52
commit e671c024c9
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ static int client_mainloop(void) {
if (len > 0) {
debug("client-stdin: %c\n", pkt.u.msg[0]);
pkt.len = len;
if (pkt.u.msg[0] == KEY_REDRAW) {
if (KEY_REDRAW && pkt.u.msg[0] == KEY_REDRAW) {
client.need_resize = true;
} else if (pkt.u.msg[0] == KEY_DETACH) {
pkt.type = MSG_DETACH;