macOS: fix regression caused by 3ee8ef4f65

pull/11872/head
Lukas 2026-03-26 19:53:12 +01:00
parent 95ee878904
commit ad0c5fbec3
No known key found for this signature in database
GPG Key ID: 1944A0A77B561220
1 changed files with 3 additions and 1 deletions

View File

@ -667,7 +667,9 @@ extension Ghostty {
// The clicked location in this window should be this view.
let location = convert(event.locationInWindow, from: nil)
guard hitTest(location) == self else { return event }
// We should use window to perform hitTest here,
// because there could be some other overlays on top, like search bar
guard window.contentView?.hitTest(location) == self else { return event }
// We always assume that we're resetting our mouse suppression
// unless we see the specific scenario below to set it.