From e288541a9b97427a66c5ecc4b9ce4cee8a3b9bb3 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 27 Mar 2021 14:52:40 +0100 Subject: [PATCH] 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. --- Userland/Services/Taskbar/TaskbarWindow.cpp | 1 + 1 file changed, 1 insertion(+) 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); }