Bug 476189

Summary: On X11, quotation mark in window title causes title to be cut off early in Task Manager tooltip
Product: [Plasma] plasmashell Reporter: Gaëtan Gilbert <gaetan.gilbert>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: minor CC: nate, qydwhotmail
Priority: NOR    
Version First Reported In: 5.27.8   
Target Milestone: 1.0   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot of the bug
how it should look

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.