The GET_WINDOW_SIZE_PIXELS query is responding with the dimensions reversed
The CSI 14 t
escape sequence is a query for the pixel size of the text area, and the response is supposed to be formatted as CSI 4 ; height ; width t
. However VTE is responding with the width parameter first.
You can see the problem in the code here:
https://gitlab.gnome.org/GNOME/vte/-/blob/970ea4ec4db308cf498b22c9ac94ae29559d7a11/src/vteseq.cc#L9167-L9170
It may appear at first that the parameters are in the correct order, but the width variable is actually set to the height of the window, and the height variable is set to the width!