Mac: Bring focused windows to the foreground - #2964
Conversation
|
Hey @Descolada, so I've thought about this one, and I think I'd like to see an |
|
@cwensley interesting idea. As far as I understand, currently only macOS distinguishes active app (the overarching currently used program, claims the global menu bar at the top of the screen, owns the Dock icon indicator etc) vs focused window (where keyboard focus is). It's possible to activate an app without focusing a window, but not focusing a window without activating the app (and a window can't have keyboard focus without also being the active app). So, I think On further thought, it could perhaps be a property instead
What do you think? If you think this is worth implementing then I can attempt it + change the current PR to do |
MakeKeyAndOrderFront does not activate a background macOS application, so Window.Focus() may fail to foreground the requested window. Activate the application first, then make the window key and bring it forward.