project-gauntlet / gauntlet

Raycast-inspired open-source cross-platform application launcher with React-based plugins
Mozilla Public License 2.0
196 stars 5 forks source link

Secure Event Input problem #14

Open Exidex opened 2 months ago

Exidex commented 2 months ago

On macOS if the main Gauntlet window is opened when current focused application window is using EnableSecureEventInput API (e.g. Terminal) the focus will remain on that application. On Raycast and Spotlight it works correctly so there must be a way to ignore that restriction

Exidex commented 1 month ago

This should be solvable by using NSPanel instead of NSWindow. Unfortunately winit doesn't currently supports NSPanel but should be relatively straightforward to contribute. Tracked at https://github.com/rust-windowing/winit/issues/3894. Additionally this is currently blocked by inability to update iced-rs (and therefore winit) because of wgpu incompatibility with deno. Tracked at https://github.com/gfx-rs/wgpu/issues/3105