mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-24 20:56:08 +03:00
fix mouse position recording for x10 format
I don't know when this broke since I swear this was working before...
This commit is contained in:
@ -1165,9 +1165,9 @@ fn mouseReport(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// + 1 below is because our x/y is 0-indexed and proto wants 1
|
// + 1 below is because our x/y is 0-indexed and the protocol wants 1
|
||||||
var data: termio.Message.WriteReq.Small.Array = undefined;
|
var data: termio.Message.WriteReq.Small.Array = undefined;
|
||||||
assert(data.len >= 5);
|
assert(data.len >= 6);
|
||||||
data[0] = '\x1b';
|
data[0] = '\x1b';
|
||||||
data[1] = '[';
|
data[1] = '[';
|
||||||
data[2] = 'M';
|
data[2] = 'M';
|
||||||
@ -1179,7 +1179,7 @@ fn mouseReport(
|
|||||||
_ = self.io_thread.mailbox.push(.{
|
_ = self.io_thread.mailbox.push(.{
|
||||||
.write_small = .{
|
.write_small = .{
|
||||||
.data = data,
|
.data = data,
|
||||||
.len = 5,
|
.len = 6,
|
||||||
},
|
},
|
||||||
}, .{ .forever = {} });
|
}, .{ .forever = {} });
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user