kettle11 / kapp

A pure Rust window and input library for Windows, Mac, and Web. (Work in progress)
Apache License 2.0
56 stars 4 forks source link

Moving mouse while launching MacOS app messes up focus #32

Open kettle11 opened 3 years ago

kettle11 commented 3 years ago

Simply wiggling a mouse while kapp is launching causes the window to launch without focus requiring an alt-tab.

Makepad's version of the fix is here: https://github.com/makepad/makepad/blob/master/render/src/cx_cocoa.rs#L225

Winit's version of the fix is this file (which also includes some great contextual info): https://github.com/rust-windowing/winit/blob/1ddceeb0630994e4960493b1fe92bc72f8c5a54b/src/platform_impl/macos/activation_hack.rs