diff options
-rw-r--r-- | src/keys.cc | 2 | ||||
-rw-r--r-- | src/ui.cc | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/keys.cc b/src/keys.cc index b6c3efd4..3dea1d98 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -250,7 +250,7 @@ void Keys::parseKey(char *key, char *commandName) // Get command code if ((st = getCmdCode(commandName)) == -1) { - MSG("Invalid command name: '%s'\n", commandName); + MSG("Keys::parseKey: Invalid command name: '%s'\n", commandName); return; } else symcode = st; @@ -1079,8 +1079,11 @@ void UI::set_tab_title(const char *label) } snprintf(title + tab_chars, 4, "..."); } - this->copy_label(title); - this->redraw_label(); + // Avoid unnecessary redraws + if (strcmp(this->label(), title)) { + this->copy_label(title); + this->redraw_label(); + } // Disabled because of a bug in fltk::Tabgroup //dFree(TabTooltip); |