summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-03-27 14:52:40 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-27 16:28:21 +0100
commite288541a9b97427a66c5ecc4b9ce4cee8a3b9bb3 (patch)
tree5444cf8e0032cc9398a4d1fee82543afe215b64d /Userland
parent2fde87e67df192acd24c846758aafd18e6d73873 (diff)
downloadserenity-e288541a9b97427a66c5ecc4b9ce4cee8a3b9bb3.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Services/Taskbar/TaskbarWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp
index b2b027e4d6..be2aa50093 100644
--- a/Userland/Services/Taskbar/TaskbarWindow.cpp
+++ b/Userland/Services/Taskbar/TaskbarWindow.cpp
@@ -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);
}