home · contact · privacy
Fixed bug that crashed the client on terminal resizing due to wrongly expecting there...
authorChristian Heller <c.heller@plomlompom.de>
Thu, 23 Jan 2014 21:03:45 +0000 (22:03 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 23 Jan 2014 21:03:45 +0000 (22:03 +0100)
src/client/control.c
src/client/wincontrol.h

index 4c512dcf978a62ad8a62086a2ff1595c505f1686..a58c35cb06e060ddfb4763413a0068c051b9e76d 100644 (file)
@@ -151,7 +151,7 @@ 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.wmeta.active)
     {
         struct WinConf * wc = get_winconf_by_win(world.wmeta.active);
         if      (0 == wc->view)
index 8290379cd1d6c5309e3e804f2fdc65be09296066..2ecb4becdab11f490a63aeee7d921154d7045124 100644 (file)
@@ -27,7 +27,7 @@ struct WinConf
 {
     struct Win * win;    /* Window / Win struct configured by this WinConf. */
     struct KeyBindingDB kb; /* Window-specific keybindings. */
-    struct yx_uint16 center; /* Designated Win.center */
+    struct yx_uint16 center; /* Designated Win.center. */
     int16_t height;      /* Designated height to pass to init_win(). */
     int16_t width;       /* Designated width to pass to init_win(). */
     uint8_t height_type; /* 0: read .height/.width as size in positive cells; */