aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md3
-rw-r--r--terminal.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e78f7aa..da164b8a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -93,6 +93,9 @@
freeze when closing a footclient window.
* Underlying cell content showing through in the left-most column of
sixels.
+* Blinking cursor stops blinking, or becoming invisible, when
+ switching focus from, and then back to a terminal window on GNOME
+ (https://codeberg.org/dnkl/foot/issues/686).
### Security
diff --git a/terminal.c b/terminal.c
index 2be92dda..cb1641f2 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2456,11 +2456,11 @@ void
term_cursor_blink_update(struct terminal *term)
{
bool enable = term->cursor_blink.decset || term->cursor_blink.deccsusr;
- bool activate = !term->shutdown.in_progress && enable && term->kbd_focus;
+ bool activate = !term->shutdown.in_progress && enable && term->visual_focus;
LOG_DBG("decset=%d, deccsrusr=%d, focus=%d, shutting-down=%d, enable=%d, activate=%d",
term->cursor_blink.decset, term->cursor_blink.deccsusr,
- term->kbd_focus, term->shutdown.in_progress,
+ term->visual_focus, term->shutdown.in_progress,
enable, activate);
if (activate && term->cursor_blink.fd < 0) {