mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-03 13:51:46 +03:00
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:
parent
3710894c46
commit
51f9a1f8ce
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user