diff options
author | Christian Persch <chpe@src.gnome.org> | 2021-08-29 22:24:57 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2021-08-29 22:25:08 +0200 |
commit | 6a2ec5f7960c15a4743aead98ec49bbc8c7af443 (patch) | |
tree | b073794c63dd58d24466aa700601ba30d816863d | |
parent | 3601d2dfae082d54ab47a50d0738cbb6b159c803 (diff) | |
download | vte-6a2ec5f7960c15a4743aead98ec49bbc8c7af443.tar.gz |
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)
-rw-r--r-- | src/vteseq.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vteseq.cc b/src/vteseq.cc index b2a8d8ee..0a45c9b4 100644 --- a/src/vteseq.cc +++ b/src/vteseq.cc @@ -8946,8 +8946,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; } |