stop framebuffer port updating its status text every time the mouse pointer is moved

svn path=/trunk/netsurf/; revision=6611
This commit is contained in:
Vincent Sanders 2009-02-24 10:02:43 +00:00
parent 3710894c46
commit 51f9a1f8ce

View File

@ -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);
}