Skip to content

feat(app): the custom title bar draws the window's title, "TaskSmack (Administrator)" in an Administrator session (#2728) - #2949

Merged
mgradwohl merged 1 commit into
mainfrom
feat/titlebar-text-2728
Oct 25, 2026
Merged

mgradwohl merged 1 commit into
mainfrom
feat/titlebar-text-2728

Conversation

@mgradwohl

Copy link
Copy Markdown
Owner

Description

Part of #2728 ("Window title: 'TaskSmack (Administrator)' when elevated"). #2934 set the OS window title, which shows in the taskbar, the window switcher and native title bars. But TaskSmack's own borderless title bar, the one usually on screen, drew a hardcoded "TaskSmack", so in an Administrator session it still said just "TaskSmack".

  • Core::Window: setTitle() now keeps the title in the window spec, and title() returns it.
  • TitleBarView::Input: new title field (default "TaskSmack"), drawn in place of the literal. TitleBarLayer passes window.title().
  • FAQ: the "Standard or Administrator" paragraph now says what the title bar and status bar show in an Administrator session.

This applies on every platform: the custom bar now always matches the OS title.

PR Size

✅ Small (~60 lines, 7 files).

Type of Change

  • New feature (non-breaking change that adds functionality)

Checklist

  • I have read the CONTRIBUTING guidelines
  • My code follows the project's coding standards
  • I have run clang-tidy and addressed any warnings
  • I have run clang-format on my changes
  • I have run pre-commit run --all-files or installed pre-commit hooks
  • I have added tests that prove my fix/feature works
  • All new and existing tests pass
  • I have updated documentation as needed

Testing

TASKSMACK_REQUIRE_DISPLAY=1 TASKSMACK_REQUIRE_SDBUS=1 xvfb-run -a env -u WAYLAND_DISPLAY ctest --preset debug -j 4   # 682/682

New test: TitleBarViewRenderTest.TheBarDrawsTheWindowsTitle. It captures the bar's drawn text and checks that "TaskSmack (Administrator)" appears only when that's the title.

Additional Notes

v0.10.0, no backport.

🤖 Generated with Claude Code

…(Administrator)" in an Administrator session (#2728)

#2934 set the OS window title, which the taskbar and window switcher show, but
TaskSmack's own borderless title bar drew a literal "TaskSmack". Core::Window
now keeps the title it set (title()), TitleBarLayer hands it to
TitleBarView::Input::title, and the view draws that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mgradwohl mgradwohl added this to the v0.10.0 milestone Oct 25, 2026
@mgradwohl mgradwohl added enhancement New feature or request testing ui UI / rendering issues agent:WSL Owned by the Linux/WSL Claude session (bug-fix conveyor) labels Oct 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 25, 2026
@mgradwohl
mgradwohl enabled auto-merge (squash) October 25, 2026 23:11
@mgradwohl
mgradwohl merged commit 356769d into main Oct 25, 2026
31 checks passed
@mgradwohl
mgradwohl deleted the feat/titlebar-text-2728 branch October 25, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:WSL Owned by the Linux/WSL Claude session (bug-fix conveyor) documentation Improvements or additions to documentation enhancement New feature or request testing ui UI / rendering issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant