mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 00:36:07 +03:00
@ -2135,6 +2135,10 @@ const StreamHandler = struct {
|
||||
self: *StreamHandler,
|
||||
shape: terminal.MouseShape,
|
||||
) !void {
|
||||
// Avoid changing the shape it it is already set to avoid excess
|
||||
// cross-thread messaging.
|
||||
if (self.terminal.mouse_shape == shape) return;
|
||||
|
||||
self.terminal.mouse_shape = shape;
|
||||
_ = self.ev.surface_mailbox.push(.{
|
||||
.set_mouse_shape = shape,
|
||||
|
Reference in New Issue
Block a user