mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-28 04:18:38 +03:00
macos: mouse tracking area should always send
Without this, non-first-responder views would not receive mouse entered/exit events. This would break some of our mouse hiding state. See comments for more info.
This commit is contained in:
@ -419,12 +419,13 @@ extension Ghostty {
|
|||||||
options: [
|
options: [
|
||||||
.mouseEnteredAndExited,
|
.mouseEnteredAndExited,
|
||||||
.mouseMoved,
|
.mouseMoved,
|
||||||
|
|
||||||
|
// Only send mouse events that happen in our visible (not obscured) rect
|
||||||
.inVisibleRect,
|
.inVisibleRect,
|
||||||
|
|
||||||
// It is possible this is incorrect when we have splits. This will make
|
// We want active always because we want to still send mouse reports
|
||||||
// mouse events only happen while the terminal is focused. Is that what
|
// even if we're not focused or key.
|
||||||
// we want?
|
.activeAlways,
|
||||||
.activeWhenFirstResponder,
|
|
||||||
],
|
],
|
||||||
owner: self,
|
owner: self,
|
||||||
userInfo: nil))
|
userInfo: nil))
|
||||||
|
Reference in New Issue
Block a user