Bug 468943 - Cursor flickers while moving over selectable paragraphs of text
Summary: Cursor flickers while moving over selectable paragraphs of text
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-25 09:20 UTC by Chan Woo
Modified: 2023-04-25 16:39 UTC (History)
1 user (show)

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


Attachments
A demo of frequently changing cursor (834.03 KB, video/webm)
2023-04-25 09:20 UTC, Chan Woo
Details
Another demo of the flickering cursor (647.24 KB, video/webm)
2023-04-25 09:21 UTC, Chan Woo
Details

Note You need to log in before you can comment on or make changes to this bug.
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.