[vte/vte-0-64] emulation: Fix xterm window size request response



commit 2ea994e226accea3f3ca9b91d86a8340c7c8c7de
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
    (cherry picked from commit 0178c1b0a3d2c162bfddcd161ab55f4ff79b1ab4)

 src/vteseq.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index bde2fa7b..a40f1192 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -8906,8 +8906,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]