Bug 476189 - On X11, quotation mark in window title causes title to be cut off early in Task Manager tooltip
Summary: On X11, quotation mark in window title causes title to be cut off early in Ta...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 5.27.8
Platform: Debian testing Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-28 08:45 UTC by Gaëtan Gilbert
Modified: 2025-01-15 19:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot of the bug (49.51 KB, image/png)
2023-10-28 08:45 UTC, Gaëtan Gilbert
Details
how it should look (36.51 KB, image/png)
2023-10-28 08:45 UTC, Gaëtan Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gaëtan Gilbert 2023-10-28 08:45:02 UTC
Created attachment 162612 [details]
screenshot of the bug

SUMMARY
In some cases (not clear what the complete conditions are), when a window title "foo bar's bar" does not fit in the task manager such that it should get shortened as "foo bar..." I instead see just "foo".

Encountered in the wild on https://forums.spacebattles.com/threads/a-young-girls-game-of-thrones.1095557/

STEPS TO REPRODUCE
1. Make a window whose title starts with "A Young Girl's Game" (eg by entering a directory with this name in a shell in konsole)
2. Open enough windows to crowd the task manager (unset window grouping to make this easier) (10 windows including the one with the tested title works for me, but this probably depends on screen resolution, font settings, and how much stuff is in the system tray etc)
3. Observe the bug

OBSERVED RESULT
Window title is cut off earlier than it should be, leaving noticeable blank space (see attached file bad.png)

EXPECTED RESULT
Window title should be cut off later (see attached file good.png, produced by replacing the ' with a - in the window title)

SOFTWARE/OS VERSIONS

KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Gaëtan Gilbert 2023-10-28 08:45:27 UTC
Created attachment 162613 [details]
how it should look
Comment 2 Nate Graham 2023-10-30 19:45:03 UTC
Cannot reproduce on Plasma 6 Wayland. Are you using X11? If so can you text on Wayland too?
Comment 3 Gaëtan Gilbert 2023-10-31 08:28:55 UTC
Yes X11.

I don't have time to test wayland.
Comment 4 Nate Graham 2025-01-15 19:56:28 UTC
Unfortunately X11 support is de facto abandoned these days. Being minor and already working on Wayland means practically no chance of a fix, I'm afraid.