mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
Our handling of timers in Gtk was truncating times on 64-bit systems; one
symptom was that the terminal window would not update until a focus-change event. Spotted and patched by Max Kellermann. [originally from svn r8854]
This commit is contained in:
parent
af8fd0fea6
commit
14247162f7
@ -1291,14 +1291,14 @@ void notify_remote_exit(void *frontend)
|
|||||||
|
|
||||||
static gint timer_trigger(gpointer data)
|
static gint timer_trigger(gpointer data)
|
||||||
{
|
{
|
||||||
long now = GPOINTER_TO_INT(data);
|
long now = GPOINTER_TO_SIZE(data);
|
||||||
long next;
|
long next;
|
||||||
long ticks;
|
long ticks;
|
||||||
|
|
||||||
if (run_timers(now, &next)) {
|
if (run_timers(now, &next)) {
|
||||||
ticks = next - GETTICKCOUNT();
|
ticks = next - GETTICKCOUNT();
|
||||||
timer_id = gtk_timeout_add(ticks > 0 ? ticks : 1, timer_trigger,
|
timer_id = gtk_timeout_add(ticks > 0 ? ticks : 1, timer_trigger,
|
||||||
GINT_TO_POINTER(next));
|
GSIZE_TO_POINTER(next));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user