[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [frameworks-frameworkintegration] [Bug 343635] New: No way to set cursor blink rate / cursorFlashTim
From:       Thomas Backman <exscape+kde () gmail ! com>
Date:       2015-01-31 20:15:38
Message-ID: bug-343635-17878 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=343635

            Bug ID: 343635
           Summary: No way to set cursor blink rate / cursorFlashTime
           Product: frameworks-frameworkintegration
           Version: unspecified
          Platform: unspecified
                OS: All
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: kdelibs-bugs@kde.org
          Reporter: exscape+kde@gmail.com

(Plasma 5.2/frameworkintegration 5.6.0)

By default, the text cursor blinks in KDE and in Qt 5 apps (and likely in
others). However, there is no option to change the blink rate, or disable
blinking altogether.
This may not be an issue for most, but some find the blinking annoying,
particularly in applications which use large/block cursors, rather than thin
vertical bars.

For older Qt versions, there is qtconfig, which can adjust the Qt
cursorFlashTime parameter in a system-wide way. For Qt 5 and KDE Plasma 5.2,
the only solution I've found is to use LD_PRELOAD to override the default
value.

Apologies if this bug is misfiled; I really have no idea where it fits best;
System Settings > Keyboard may be a reasonable place for the setting.
I chose frameworkintegration after looking through the Qt source
(qtbase/src/gui/kernel/qstylehints.cpp), and finding that
QStyleHints::cursorFlashTime can get its value from either
QPlatformTheme::CursorFlashTime or QPlatformIntegration::CursorFlashTime.

LD_PRELOAD solution that works in the meantime, for others who might find this
bug: https://github.com/igogo/qt5noblink
The same hack should be able to adjust the blink rate, simply by adjusting the
return 0 to a value in milliseconds (the default appears to be 1000 ms).

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic