This breaks the switching to input mode via hinting, because if the hints
caused entering the input mode we move the focus from inputbox, that called
the callback that forced switching to normal mode.
g_signal_connect(
G_OBJECT(vb.gui.window), "key-press-event", G_CALLBACK(map_keypress), NULL
);
- g_object_connect(
- G_OBJECT(vb.gui.input),
- "signal::focus-in-event", G_CALLBACK(mode_input_focusin), NULL,
- "signal::focus-out-event", G_CALLBACK(mode_input_focusout), NULL,
- NULL
+ g_signal_connect(
+ G_OBJECT(vb.gui.input), "focus-in-event", G_CALLBACK(mode_input_focusin), NULL
);
g_object_connect(
G_OBJECT(vb.gui.buffer),
return false;
}
-gboolean mode_input_focusout(GtkWidget *widget, GdkEventFocus *event, gpointer data)
-{
- /* if focus is lesft from inputbox - switch back to normal mode */
- mode_enter('n');
-
- return false;
-}
-
/**
* Process input changed event on current active mode.
*/