Guarded the GTK3/Wayland redraw path in gtk_xtext_render_page with #if HAVE_GTK3 so GTK2 builds render immediately instead of waiting for expose events.

This commit is contained in:
2026-02-05 00:03:35 -07:00
parent d8985e9f91
commit 0349e44856

View File

@@ -4429,7 +4429,7 @@ gtk_xtext_render_page (GtkXText * xtext)
* If we're not currently inside ::draw, xtext->draw_cr is NULL. In that case * If we're not currently inside ::draw, xtext->draw_cr is NULL. In that case
* just request a redraw and let the normal GTK paint cycle do the work. * just request a redraw and let the normal GTK paint cycle do the work.
*/ */
#ifdef HAVE_GTK3 #if HAVE_GTK3
if (xtext->draw_cr == NULL) if (xtext->draw_cr == NULL)
{ {
GtkWidget *w = GTK_WIDGET (xtext); GtkWidget *w = GTK_WIDGET (xtext);