forked from aniani/vim
updated for version 7.1-095
This commit is contained in:
@@ -813,10 +813,15 @@ focus_in_event(GtkWidget *widget, GdkEventFocus *event, gpointer data)
|
||||
if (blink_state == BLINK_NONE)
|
||||
gui_mch_start_blink();
|
||||
|
||||
/* make sure keyboard input goes to the draw area (if this is focus for a window) */
|
||||
/* make sure keyboard input goes to the draw area (if this is focus for a
|
||||
* window) */
|
||||
if (widget != gui.drawarea)
|
||||
gtk_widget_grab_focus(gui.drawarea);
|
||||
|
||||
/* make sure the input buffer is read */
|
||||
if (gtk_main_level() > 0)
|
||||
gtk_main_quit();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -829,6 +834,10 @@ focus_out_event(GtkWidget *widget, GdkEventFocus *event, gpointer data)
|
||||
if (blink_state != BLINK_NONE)
|
||||
gui_mch_stop_blink();
|
||||
|
||||
/* make sure the input buffer is read */
|
||||
if (gtk_main_level() > 0)
|
||||
gtk_main_quit();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user