patch 9.2.0951: GTK3: cursor does no longer blink
Commit:
https://github.com/vim/vim/commit/4fa6895ad203d14e3db4365a451d68006a01b548
Author: Christoffer Aasted <
dez...@gmail.com>
Date: Wed Aug 12 20:03:01 2026 +0000
patch 9.2.0951: GTK3: cursor does no longer blink
Problem: GTK3: cursor does no longer blink
(presuku, after v9.2.0897)
Solution: simplify code, use gui_may_flush()
(Christoffer Aasted)
fixes: #20983
closes: #21019
Signed-off-by: Christoffer Aasted <
dez...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 571f93817..b178aecda 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -986,9 +986,7 @@ gui_mch_stop_blink(int may_call_gui_update_cursor)
if (blink_state == BLINK_OFF && may_call_gui_update_cursor)
{
gui_update_cursor(TRUE, FALSE);
-#if !GTK_CHECK_VERSION(3,0,0)
- gui_mch_flush();
-#endif
+ gui_may_flush();
}
blink_state = BLINK_NONE;
}
@@ -1008,9 +1006,7 @@ blink_cb(gpointer data UNUSED)
blink_state = BLINK_ON;
blink_timer = timeout_add(blink_ontime, blink_cb, NULL);
}
-#if !GTK_CHECK_VERSION(3,0,0)
- gui_mch_flush();
-#endif
+ gui_may_flush();
return FALSE; // don't happen again
}
@@ -1033,9 +1029,7 @@ gui_mch_start_blink(void)
blink_timer = timeout_add(blink_waittime, blink_cb, NULL);
blink_state = BLINK_ON;
gui_update_cursor(TRUE, FALSE);
-#if !GTK_CHECK_VERSION(3,0,0)
- gui_mch_flush();
-#endif
+ gui_may_flush();
}
}
diff --git a/src/version.c b/src/version.c
index 18210eb02..31df22a94 100644
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 951,
/**/
950,
/**/