| Summary: | On startup, terminal cursor blinks even though it isn't focused | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | kdebugs |
| Component: | general | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | frank78ac |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/konsole/d633ba3306aab30a6f2e60f9081c713bc2086c46 | Version Fixed/Implemented In: | 4.14 |
| Sentry Crash Report: | |||
|
Description
kdebugs
2014-06-16 09:37:06 UTC
Thanks for the bug report. Dolphin itself has no knowledge of Konsole's cursor settings, so I don't quite see how this could be fixed in Dolphin. Moreover, I see the same behavior in Konsole itself when I open an external Konsole window, which is unfocused initially. Reassigning to Konsole. 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();
I can confirm that your patch fixes the issue. Thanks Christoph! Git commit d633ba3306aab30a6f2e60f9081c713bc2086c46 by Kurt Hindenburg. Committed on 25/07/2014 at 01:00. Pushed by hindenburg into branch 'KDE/4.14'. Prevent cursor blinking when not focused at startup Thanks to Christoph Feck for patch FIXED-IN: 4.14 M +3 -0 src/TerminalDisplay.cpp http://commits.kde.org/konsole/d633ba3306aab30a6f2e60f9081c713bc2086c46 |