X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fcontrol.c;h=60590963dceca0f36e8fd420ad9ca1b3faae49d7;hb=fb9b40f0535b28b37b64983240c4b78e74ee9a2c;hp=4c512dcf978a62ad8a62086a2ff1595c505f1686;hpb=f23a01df6711bdad4ef638161ff26204075b23d3;p=plomrogue diff --git a/src/client/control.c b/src/client/control.c index 4c512dc..6059096 100644 --- a/src/client/control.c +++ b/src/client/control.c @@ -151,9 +151,9 @@ static uint8_t try_server_commands(struct Command * command) extern uint8_t try_key(uint16_t key) { struct Command * command = get_command_to_keycode(world.kb_global.kbs, key); - if (!command) + if (!command && world.wins.win_active) { - struct WinConf * wc = get_winconf_by_win(world.wmeta.active); + struct WinConf * wc = get_winconf_by_win(world.wins.win_active); if (0 == wc->view) { command = get_command_to_keycode(wc->kb.kbs, key);