Taskbar: Set window title as taskbar button tooltip

This way it's easier to find the right window when many are open at the
same time, as all buttons share a limited amount of horizontal space and
titles get truncated quickly.
This commit is contained in:
Linus Groh 2021-03-27 14:52:40 +01:00 committed by Andreas Kling
parent 2fde87e67d
commit e288541a9b
Notes: sideshowbarker 2024-07-18 21:02:24 +09:00

View File

@ -220,6 +220,7 @@ void TaskbarWindow::update_window_button(::Window& window, bool show_as_active)
if (!button)
return;
button->set_text(window.title());
button->set_tooltip(window.title());
button->set_checked(show_as_active);
}