1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:57:35 +00:00

WindowServer: Add "[user]" to titlebar when uid differs from login user

This commit is contained in:
meiskam 2022-11-02 23:18:59 -04:00 committed by Andrew Kaster
parent 7237be763f
commit 8768417b1c
3 changed files with 32 additions and 1 deletions

View file

@ -388,6 +388,7 @@ private:
void ensure_window_menu();
void update_window_menu_items();
void modal_unparented();
ErrorOr<Optional<String>> compute_title_username(ConnectionFromClient* client);
ConnectionFromClient* m_client { nullptr };
@ -397,6 +398,7 @@ private:
Menubar m_menubar;
String m_title;
Optional<String> m_title_username;
Gfx::IntRect m_rect;
Gfx::IntRect m_saved_nonfullscreen_rect;
Gfx::IntRect m_taskbar_rect;