[vte/vte-0-66] emulation: Fix xterm window size request response
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-66] emulation: Fix xterm window size request response
- Date: Sun, 29 Aug 2021 20:25:15 +0000 (UTC)
commit 6a2ec5f7960c15a4743aead98ec49bbc8c7af443
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 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]