summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2019-11-22 22:35:32 +0100
committerChristian Persch <chpe@src.gnome.org>2019-11-22 22:36:35 +0100
commit73f9e209f70050ea88ed3d80e819ea1a04c5a6e1 (patch)
tree92cbfbc106ed4c98a17f769f12821b0baf3f5cfc
parentd5f459577a7a2943bf13995aa00a29fc1b086ceb (diff)
downloadvte-73f9e209f70050ea88ed3d80e819ea1a04c5a6e1.tar.gz
emulation: Report fixed origin for CSI 13 t0.58.3
https://gitlab.gnome.org/GNOME/vte/issues/128 (cherry picked from commit 901c7739362d4b6228897486c127bdbe6ba3a7df)
-rw-r--r--src/vteseq.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/vteseq.cc b/src/vteseq.cc
index c25fd58d..3329b0b2 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -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;
}