home · contact · privacy
Merged world.wmeta and world.winconf_db into world.wins.
[plomrogue] / src / client / control.c
index 4c512dcf978a62ad8a62086a2ff1595c505f1686..60590963dceca0f36e8fd420ad9ca1b3faae49d7 100644 (file)
@@ -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);