[vte] widget: Only avoid reentrant queue_resize() in GTK4



commit a07cfcde3e595084ebc72c96c41857bf05c4c668
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Aug 4 20:04:25 2022 +0400

    widget: Only avoid reentrant queue_resize() in GTK4
    
    Fixes https://gitlab.gnome.org/GNOME/vte/-/issues/2572

 src/vte.cc | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 601b89ad..4bf9587d 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7593,13 +7593,12 @@ Terminal::set_size(long columns,
                                                    _vte_ring_next (m_screen->row_data) - 1));
 
                adjust_adjustments_full();
-               if (!allocating) {
 #if VTE_GTK == 3
-                       gtk_widget_queue_resize_no_redraw(m_widget);
+               gtk_widget_queue_resize_no_redraw(m_widget);
 #elif VTE_GTK == 4
+               if (!allocating)
                        gtk_widget_queue_resize(m_widget); // FIXMEgtk4?
 #endif
-               }
 
                /* Our visible text changed. */
                emit_text_modified();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]