+ return 1;
+}
+
+
+
+extern uint8_t wingeom_control(int key, struct World * world)
+{
+ char * err_shift = "Trouble with shift_active_win() in wingeom_control().";
+ char * err_resize = "Trouble with growshrink_active_window() in "
+ "wingeom_control().";
+ if (key == get_available_keycode_to_action(world, "to_height_t"))
+ {
+ toggle_win_height_type(world, world->wmeta->active);
+ }
+ else if (key == get_available_keycode_to_action(world, "to_width_t"))
+ {
+ toggle_win_width_type(world, world->wmeta->active);
+ }
+ else if (key == get_available_keycode_to_action(world, "grow_h"))
+ {
+ exit_err(growshrink_active_window(world, '*'), world, err_resize);
+ }
+ else if (key == get_available_keycode_to_action(world, "shri_h"))
+ {
+ exit_err(growshrink_active_window(world, '_'), world, err_resize);
+ }
+ else if (key == get_available_keycode_to_action(world, "grow_v"))
+ {
+ exit_err(growshrink_active_window(world, '+'), world, err_resize);
+ }
+ else if (key == get_available_keycode_to_action(world, "shri_v"))
+ {
+ exit_err(growshrink_active_window(world, '-'), world, err_resize);
+ }
+ else if (key == get_available_keycode_to_action(world, "shift_f"))
+ {
+ exit_err(shift_active_win(world->wmeta, 'f'), world, err_shift);
+ }
+ else if (key == get_available_keycode_to_action(world, "shift_b"))
+ {
+ exit_err(shift_active_win(world->wmeta, 'b'), world, err_shift);
+ }
+ else
+ {
+ return 0;
+ }
+ return 1;
+}
+
+
+
+extern uint8_t winkeyb_control(int key, struct World * world)
+{
+ struct WinConf * wc = get_winconf_by_win(world, world->wmeta->active);
+ if (key == get_available_keycode_to_action(world, "w_keys_u"))
+ {
+ move_keyb_mod_selection(&wc->kb, 'u');
+ }
+ else if (key == get_available_keycode_to_action(world, "w_keys_d"))
+ {
+ move_keyb_mod_selection(&wc->kb, 'd');
+ }
+ else if (key == get_available_keycode_to_action(world, "w_keys_m"))
+ {
+ mod_selected_keyb(world, &wc->kb);
+ }
+ else
+ {
+ return 0;
+ }
+ return 1;