25 lines
1006 B
Diff
25 lines
1006 B
Diff
|
From 2ea8d19b210b62a02ebcb38f035e074dcba66426 Mon Sep 17 00:00:00 2001
|
||
|
From: David Herrmann <dh.herrmann@gmail.com>
|
||
|
Date: Fri, 3 Oct 2014 14:30:37 +0200
|
||
|
Subject: [PATCH] terminal/screen: mark cursor dirty on enabled/disable
|
||
|
|
||
|
If we hide or show the cursor, we change visual attributes and have to
|
||
|
mark the underlying cell as dirty. Otherwise, the terminal will not be
|
||
|
redrawn.
|
||
|
---
|
||
|
src/libsystemd-terminal/term-screen.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/src/libsystemd-terminal/term-screen.c b/src/libsystemd-terminal/term-screen.c
|
||
|
index 5b0562e4c3..2c881ca8b1 100644
|
||
|
--- a/src/libsystemd-terminal/term-screen.c
|
||
|
+++ b/src/libsystemd-terminal/term-screen.c
|
||
|
@@ -419,6 +419,7 @@ static void screen_mode_change(term_screen *screen, unsigned int mode, bool dec,
|
||
|
* TODO
|
||
|
*/
|
||
|
set_reset(screen, TERM_FLAG_HIDE_CURSOR, !set);
|
||
|
+ screen_age_cursor(screen);
|
||
|
}
|
||
|
|
||
|
break;
|