From 51f9a1f8cecd0432ccebc7a2d07960674b0971ef Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 24 Feb 2009 10:02:43 +0000 Subject: stop framebuffer port updating its status text every time the mouse pointer is moved svn path=/trunk/netsurf/; revision=6611 --- framebuffer/fb_gui.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'framebuffer/fb_gui.c') diff --git a/framebuffer/fb_gui.c b/framebuffer/fb_gui.c index 8f50d59e1..d871efa38 100644 --- a/framebuffer/fb_gui.c +++ b/framebuffer/fb_gui.c @@ -485,6 +485,16 @@ void gui_window_update_extent(struct gui_window *g) void gui_window_set_status(struct gui_window *g, const char *text) { + static char *cur_text = NULL; + + if (cur_text != NULL) { + if (strcmp(cur_text, text) == 0) + return; + + free(cur_text); + } + cur_text = strdup(text); + fb_rootwindow_status(text); } -- cgit v1.2.3