From 776274f4a901900ffec5cc0c91324547b10c624c Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 28 Mar 2004 00:29:29 +0000 Subject: [project @ 2004-03-28 00:29:29 by bursa] Fix idle polling when events are scheduled. svn path=/import/netsurf/; revision=684 --- riscos/gui.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'riscos') diff --git a/riscos/gui.c b/riscos/gui.c index 89866c531..b58e5cc3c 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -307,6 +307,11 @@ void gui_poll(bool active) xhourglass_off(); if (active) { event = wimp_poll(mask, &block, 0); + } else if (sched_active && (over_window || gui_reformat_pending)) { + os_t t = os_read_monotonic_time() + 10; + if (sched_time < t) + t = sched_time; + event = wimp_poll_idle(mask, &block, t, 0); } else if (sched_active) { event = wimp_poll_idle(mask, &block, sched_time, 0); } else if (over_window || gui_reformat_pending) { -- cgit v1.2.3