summaryrefslogtreecommitdiff
path: root/framebuffer/fb_gui.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-02-11 22:36:07 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-02-11 22:36:07 +0000
commit53f5a9ab4d9c54b8b73a973a4c4931685e936517 (patch)
tree67b1e1e9ae64315650a1cf0a7f0603104fb93572 /framebuffer/fb_gui.c
parentcbf07e1bc3e11d7cce4769782f2acf76e47f6947 (diff)
downloadnetsurf-53f5a9ab4d9c54b8b73a973a4c4931685e936517.tar.gz
netsurf-53f5a9ab4d9c54b8b73a973a4c4931685e936517.tar.bz2
stop SDL frontend consuming all available CPU when idel
svn path=/trunk/netsurf/; revision=6448
Diffstat (limited to 'framebuffer/fb_gui.c')
-rw-r--r--framebuffer/fb_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/framebuffer/fb_gui.c b/framebuffer/fb_gui.c
index b769ece06..07a615251 100644
--- a/framebuffer/fb_gui.c
+++ b/framebuffer/fb_gui.c
@@ -208,11 +208,11 @@ void gui_poll(bool active)
// LOG(("enter fetch_poll"));
if (active)
fetch_poll();
+
//LOG(("enter schedule run"));
- schedule_run();
+ active = schedule_run() | active;
-
- fb_os_input(input_window);
+ fb_os_input(input_window, active);
if (redraws_pending == true) {
struct gui_window *g;