Problem: In GTK4, moving the mouse over the window right after startup
clears the screen, including the intro message.
Solution: Keep the cached contents of the drawing area in sync with the
size Vim is going to draw (Hirohito Higashi).
fixes: #21016
closes: #21021
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
limit_screen_size();
gui.num_cols = Columns;
gui.num_rows = Rows;
+#ifdef USE_GTK4
+ // Keep the drawing area in sync with the size Vim is going to draw.
+ gui_gtk4_update_size();
+#endif
min_width = base_width + MIN_COLUMNS * gui.char_width;
min_height = base_height + MIN_LINES * gui.char_height;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 947,
/**/
946,
/**/