Bug 468943

Summary: Cursor flickers while moving over selectable paragraphs of text
Product: [I don't know] kde Reporter: Chan Woo <chanwoo02121>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: A demo of frequently changing cursor
Another demo of the flickering cursor

Description Chan Woo 2023-04-25 09:20:05 UTC
Created attachment 158414 [details]
A demo of frequently changing cursor

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Go to any application that lets you select text, e.g. Firefox or Info Center (not an application like KWrite or LibreOffice Write, where the cursor does not change for the entire duration that it is inside the textbox).
2. Try moving you cursor over any selectable paragraphs of text or between lines of text.

OBSERVED RESULT
The cursor will change to the default cursor type whenever it's between two lines of text, and then again change to the cursor that indicates selectable text when it's hovering on top of the lines of text. This makes the cursor look very jerky when it moves fast.

EXPECTED RESULT
The cursor stays unchanged for the entire duration that it is in the paragraph of text.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 38
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
Graphics Platform: X11
Comment 1 Chan Woo 2023-04-25 09:21:14 UTC
Created attachment 158415 [details]
Another demo of the flickering cursor
Comment 2 Nate Graham 2023-04-25 16:39:38 UTC
This isn't a KDE bug; in fact it's not really a bug at all. :) It's just what happens when the metrics of the font used specify blank line spacing between lines, or when the UI layout puts spacing between text labels. There isn't a generic way to change this everywhere, nor would it even be desirable to; in Info Center for example, to change this, we would have to reduce vertical spacing between sections in a way that would make the text and layout look really cramped.