-
Notifications
You must be signed in to change notification settings - Fork 932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS: Only activate after the application has finished launching #1903
MacOS: Only activate after the application has finished launching #1903
Conversation
I tested this (I was moving my mouse while running |
Oops, forgot to reply to this, but the discrepancy was indeed nicely spotted! I too will have to spend some more time on this / on #1918 at some point 😉 |
So, I found yet another hacky way to activate the windows, so this now works on the It should be noted that it could be implemented differently: By tracking windows created before |
Anyway, my proposal going forward would be to merge this, with or without the activation hack (somebody other than me should decide whether we want to encourage creating windows before |
This fixes the main menu not responding until you refocus, at least from what I can tell - though we might have to do something similar to linebender/druid#994 to fix it fully?
You can't make hidden windows the key window
For activating multiple windows created before the application finished launching
148a8d1
to
c3e11b3
Compare
I don't want to jinx it, but @madsmtm, I think you are a genius. It works perfectly. |
I somewhat hastily merged this, but @adamnemecek could you test if this works for you? |
Well, it shouldn't work for them (and everyone else on Catalina or above), it's missing #1922, right? |
All that #1922 does is that it allows you to specify an activation policy other than @casperstorm would mind testing this to see if the default menu can be opened right after startup, on the master branch? |
The vital thing is, it also moves the setting of the activation policy to |
It does open right after startup on 10.15.7 👍🏻 |
Awesome, thank youuu 😊 |
cargo fmt
has been run on this branchcargo doc
builds successfullyCHANGELOG.md
if knowledge of this change could be valuable to usersThis fixes the main menu not responding until you refocus, at least from what I can tell - though we might have to do something similar to linebender/druid#994 to fix it on Catalina.
Additionally, activating the application when it has launched means we don't need the activation hack from #1318 any longer - though I would like @francesca64 to give their input here, it's very likely that I'm wrong on this point!