Commit 73f9e209 authored by Christian Persch's avatar Christian Persch

emulation: Report fixed origin for CSI 13 t

#128
(cherry picked from commit 901c7739)
parent d5f45957
......@@ -8713,17 +8713,8 @@ Terminal::XTERM_WM(vte::parser::Sequence const& seq)
break;
case VTE_XTERM_WM_GET_WINDOW_POSITION: {
/* Send window location, in pixels. */
/* FIXME: this is not supported on wayland; just hardwire
* it to a fixed return always.
*/
int x0, y0;
gdk_window_get_origin(gtk_widget_get_window(m_widget), &x0, &y0);
_vte_debug_print(VTE_DEBUG_EMULATION,
"Reporting window location (%d,%d).\n", x0, y0);
reply(seq, VTE_REPLY_XTERM_WM,
{3, x0 + m_padding.left, y0 + m_padding.top});
/* Send window location, in pixels. Reply with fixed origin. */
reply(seq, VTE_REPLY_XTERM_WM, {3, 0, 0});
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment