[vte] emulation: Report fixed origin for CSI 13 t



commit 901c7739362d4b6228897486c127bdbe6ba3a7df
Author: Christian Persch <chpe src gnome org>
Date:   Fri Nov 22 22:35:32 2019 +0100

    emulation: Report fixed origin for CSI 13 t
    
    https://gitlab.gnome.org/GNOME/vte/issues/128

 src/vteseq.cc | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 7fc69af0..65831ba3 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -8749,17 +8749,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;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]