X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=src%2Fclient%2Fkeybindings.c;h=fd62dda809b9e4ac40fe55474f5ddd5687554867;hb=024b404c0db59dc6651b1c8f3d379c2797654fdf;hp=e57e3612c2f21e13e97f4568da08f78a6a764c94;hpb=e8e8f91cff96eebc1b440df18d9c3ef4ced1ca60;p=plomrogue
diff --git a/src/client/keybindings.c b/src/client/keybindings.c
index e57e361..fd62dda 100644
--- a/src/client/keybindings.c
+++ b/src/client/keybindings.c
@@ -9,7 +9,6 @@
#include /* strlen(), strchr(), strcmp() */
#include "../common/readwrite.h" /* textfile_sizes(), try_fgets(),try_fwrite()*/
#include "../common/try_malloc.h" /* try_malloc() */
-#include "wincontrol.h" /* get_winconf_by_win() */
#include "windows.h" /* draw_all_wins() */
#include "world.h" /* global world */
@@ -82,8 +81,8 @@ static struct KeyBindingDB * char_selected_kb_db(char c)
}
else if ('w' == c)
{
- struct WinConf * wc = get_winconf_by_win(world.wmeta.active);
- kbd = &wc->kb;
+ struct Win * w = get_win_by_id(world.windb.active);
+ kbd = &w->kb;
}
return kbd;
}