summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/WindowFrame.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-10 00:00:40 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-10 00:02:05 +0200
commit353a831c8cab0de3484069169f98bed99023f637 (patch)
tree4aababa7337b34fe1576ac3d53010b88490c250c /Userland/Services/WindowServer/WindowFrame.h
parent1f24ab91f2f67735e87e34cff5fe46a9be67ac86 (diff)
downloadserenity-353a831c8cab0de3484069169f98bed99023f637.zip
WindowServer: Compute final window title before passing to WM clients
We were not substituting the window modified marker ("[*]") in the title strings we were sending to WM clients. This caused the Taskbar to show pre-substitution window titles for the Text Editor application. This patch moves the window title resolution to Window::compute_title() which is then used throughout.
Diffstat (limited to 'Userland/Services/WindowServer/WindowFrame.h')
-rw-r--r--Userland/Services/WindowServer/WindowFrame.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/WindowFrame.h b/Userland/Services/WindowServer/WindowFrame.h
index ed094355f2..623241c32e 100644
--- a/Userland/Services/WindowServer/WindowFrame.h
+++ b/Userland/Services/WindowServer/WindowFrame.h
@@ -94,7 +94,7 @@ private:
void handle_menu_mouse_event(Menu&, const MouseEvent&);
Gfx::WindowTheme::WindowState window_state_for_theme() const;
- String compute_title_text() const;
+ String computed_title() const;
Window& m_window;
NonnullOwnPtrVector<Button> m_buttons;