mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-21 19:26:09 +03:00
core: when mouse reporting, clear link state
This commit is contained in:
@ -2736,9 +2736,13 @@ pub fn cursorPosCallback(
|
|||||||
|
|
||||||
try self.mouseReport(button, .motion, self.mouse.mods, pos);
|
try self.mouseReport(button, .motion, self.mouse.mods, pos);
|
||||||
|
|
||||||
// If we were previously over a link, we need to queue a
|
// If we were previously over a link, we need to undo the link state.
|
||||||
// render to undo the link state.
|
// We also queue a render so the renderer can undo the rendered link
|
||||||
if (over_link) try self.queueRender();
|
// state.
|
||||||
|
if (over_link) {
|
||||||
|
self.rt_surface.mouseOverLink(null);
|
||||||
|
try self.queueRender();
|
||||||
|
}
|
||||||
|
|
||||||
// If we're doing mouse motion tracking, we do not support text
|
// If we're doing mouse motion tracking, we do not support text
|
||||||
// selection.
|
// selection.
|
||||||
|
Reference in New Issue
Block a user