cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.33k stars 71 forks source link

Previous window not getting focus after a separate window dialog is closed (desktop, mac) #804

Closed rcoreilly closed 4 months ago

rcoreilly commented 5 months ago

e.g., fileview choosers -- doesn't return focus back to gide for example.

this logic used to be in there -- unfortunately OS doesn't do this automatically (on mac at least -- can't remember about other desktop platforms)

rcoreilly commented 4 months ago

this is (not) happening again (previous window is not getting focus).

kkoreilly commented 4 months ago

I fixed this in the commits above and also greatly improved the structure of focus window history tracking.