[Konsole-devel] [konsole] [Bug 336312] On startup, terminal cursor blinks even though it isn't focused

Christoph Feck christoph at maxiom.de
Tue Jul 22 01:07:29 UTC 2014


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

--- Comment #2 from Christoph Feck <christoph at maxiom.de> ---
Not tested, but this might work:

diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index c469b25..1c7b515 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -1516,6 +1516,9 @@ void TerminalDisplay::setBlinkingCursorEnabled(bool
blink)
 {
     _allowBlinkingCursor = blink;

+    if (!hasFocus())
+        return;
+
     if (blink && !_blinkCursorTimer->isActive())
         _blinkCursorTimer->start();

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list