mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Slight improvement to cursor blink timing: since the cursor doesn't
blink when the window doesn't have focus, we don't schedule blink timers at that point either. Infrastructure change: term->has_focus should now not be written directly from outside terminal.c. Instead, use the function term_set_focus, which will sort out the blink timers as well. [originally from svn r4911]
This commit is contained in:
@ -1218,7 +1218,7 @@ void destroy(GtkWidget *widget, gpointer data)
|
||||
gint focus_event(GtkWidget *widget, GdkEventFocus *event, gpointer data)
|
||||
{
|
||||
struct gui_data *inst = (struct gui_data *)data;
|
||||
inst->term->has_focus = event->in;
|
||||
term_set_focus(inst->term, event->in);
|
||||
term_update(inst->term);
|
||||
show_mouseptr(inst, 1);
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user