summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2013-10-03 20:50:51 +0200
committerDaniel Carl <danielcarl@gmx.de>2013-10-03 20:50:51 +0200
commit14cf6b904c90e32865c29bd0fd42b31de5b4f86d (patch)
treea5d21f847706df996d69abf9ad404d111ab67747
parenta7f517eee9c3c7233a3adceb7d7e2228a598d968 (diff)
Removed mode_input_focusout callback.
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.
-rw-r--r--src/main.c7
-rw-r--r--src/mode.c8
2 files changed, 2 insertions, 13 deletions
diff --git a/src/main.c b/src/main.c
index 1be841c..33aaa4e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -740,11 +740,8 @@ static void setup_signals()
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),
diff --git a/src/mode.c b/src/mode.c
index a1b2b4d..15a926b 100644
--- a/src/mode.c
+++ b/src/mode.c
@@ -122,14 +122,6 @@ gboolean mode_input_focusin(GtkWidget *widget, GdkEventFocus *event, gpointer da
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.
*/