[vte] emulation: Fix xterm window size request response



commit 0178c1b0a3d2c162bfddcd161ab55f4ff79b1ab4
Author: Christian Persch <chpe src gnome org>
Date:   Sun Aug 29 22:24:57 2021 +0200

    emulation: Fix xterm window size request response
    
    The parameters were accidentally swapped.
    
    Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/2509

 src/vteseq.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index d92d13ad..e43b2756 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -9165,8 +9165,8 @@ Terminal::XTERM_WM(vte::parser::Sequence const& seq)
                 break;
 
         case VTE_XTERM_WM_GET_WINDOW_SIZE_PIXELS: {
-                int width = m_row_count * m_cell_height_unscaled;
-                int height = m_column_count * m_cell_width_unscaled;
+                auto const height = int(m_row_count * m_cell_height_unscaled);
+                auto const width = int(m_column_count * m_cell_width_unscaled);
                 reply(seq, VTE_REPLY_XTERM_WM, {4, height, width});
                 break;
         }


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