aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-06-29 05:28:04 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-06-29 05:28:04 +0200
commit94a77a10d87367ef33156cd68b2caf601c3f72d0 (patch)
tree0e5af96c54f74b9b2a9f237d3d5f80ab24291da5
parentd39c35e59e6e541cf1f8e2479c77203f6214e5e6 (diff)
downloadtermo-94a77a10d87367ef33156cd68b2caf601c3f72d0.tar.gz
termo-94a77a10d87367ef33156cd68b2caf601c3f72d0.tar.xz
termo-94a77a10d87367ef33156cd68b2caf601c3f72d0.zip
Ensure we turn off focus tracking on exit
-rw-r--r--driver-ti.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver-ti.c b/driver-ti.c
index 00c9ad8..44eed11 100644
--- a/driver-ti.c
+++ b/driver-ti.c
@@ -432,7 +432,8 @@ stop_driver (termo_t *tk, void *info)
if (tk->mouse_proto == TERMO_MOUSE_PROTO_NONE)
return true;
return mouse_set_proto (ti, tk->mouse_proto, false)
- && mouse_set_tracking_mode (ti, tk->mouse_tracking, false);
+ && mouse_set_tracking_mode (ti, tk->mouse_tracking, false)
+ && write_string (ti->tk, "\x1b[?1004l");
}
static void *