diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-16 13:31:46 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-16 13:31:46 +0000 |
| commit | 8658ab4bed1d51e9e4260c7c554b4c769b8d2f7f (patch) | |
| tree | e98436524a514d4ed5aeb62e36911d781a1ddea7 /csi.c | |
| parent | install: add libnotify and xdg-utils as optional dependencies (diff) | |
csi: ‘CSI 13 ; 2 t’ reply is now (0,0)
Foot previously responded with window local coordinates.
But, XTerm responds with screen *absolute* coordinates. This isn’t
possible under Wayland, thus we now report (0,0) instead. Same as we
do for ‘CSI 13 ; 0 t’.
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1200,10 +1200,10 @@ csi_dispatch(struct terminal *term, uint8_t final) case 13: { /* report window position */ - /* We don't know our position - always report (0,0) */ int x = -1; int y = -1; + /* We don't know our position - always report (0,0) */ switch (vt_param_get(term, 1, 0)) { case 0: /* window position */ @@ -1212,8 +1212,7 @@ csi_dispatch(struct terminal *term, uint8_t final) case 2: /* text area position */ - x = term->margins.left; - y = term->margins.top; + x = y = 0; break; default: |
