diff options
Diffstat (limited to 'framebuffer/fb_gui.c')
-rw-r--r-- | framebuffer/fb_gui.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); } |