mirror-ghostty/macos
Mitchell Hashimoto 3e3705b932
macOS: fix surface focus/render state after dragging in to to another window/tab (#12338)
Fixes 2 bugs

1. After dragging a non-focused surface from window A to window B
**quickly without making B the key window**, the focused surface in
window A is not receiving `keyDown` events.


https://github.com/user-attachments/assets/a8861c0a-9300-470d-bf7e-0f32a9ab2cd1

2. #12343 After dragging a surface from tab A to tab B within the same
window, the dragged surface is not rendering input correctly.
> The reason the thread is stuck is because the surface's occlusion
state is set to invisible after target tab's activate while dragging,
since the dragged surface is still in previous tree before dropping, and
after dropping the occlusion state of this surface is not updated to
visible, which causing the surface is accepting input but not rendering.



https://github.com/user-attachments/assets/d67f5dba-8609-4f67-a956-921982faf796
2026-05-22 09:05:11 -07:00
..
Assets.xcassets macos: Ghostty Icon Update for macOS Tahoe 2025-06-21 12:34:49 -07:00
Ghostty.xcodeproj feat: add extension to normalize OSPasteboard string interface 2026-05-18 10:12:26 -04:00
GhosttyUITests test: always use temporary config when running ui tests 2026-04-26 13:53:36 +02:00
Sources macOS: fix surface focus/render state after dragging in to to another window/tab (#12338) 2026-05-22 09:05:11 -07:00
Tests feat: add extension to normalize OSPasteboard string interface 2026-05-18 10:12:26 -04:00
.gitignore build: LipoStep 2023-02-19 10:44:53 -08:00
.swiftlint.yml macos: swiftlint 'multiple_closures_with_trailing_closure' rule 2026-02-21 10:17:15 -08:00
AGENTS.md macos: add macos-applescript config 2026-03-06 15:04:20 -08:00
Ghostty-Info.plist macos: disable Tahoe one-time codes 2026-03-10 19:41:22 -07:00
Ghostty.entitlements macos: add entitlements for basically everything so macos asks 2023-11-23 09:00:20 -08:00
Ghostty.sdef macos: add pid and tty properties to AppleScript terminal class 2026-04-20 15:16:03 +02:00
Ghostty.xctestplan test: add test plan and override default config when running tests 2026-04-26 14:49:20 +02:00
GhosttyDebug.entitlements macos: add Sparkle via Swift PM 2023-12-18 19:09:38 -08:00
GhosttyReleaseLocal.entitlements fix(macos): ReleaseLocal build configuration with "Library Validation" disabled 2023-12-20 16:54:58 -05:00
build.nu macos: add build script, update AGENTS.md, skip UI tests 2026-03-05 19:55:50 -08:00