This has been bothering me a lot. When closing a window, the system does not give the focus to the previously focused window. Let me give an example.
Right now, I'm working with Google Chrome and it is focused (active). I decide to open up nautilus and check a file. When I'm done with nautilus, when I close it, it should automatically return the focus to Google Chrome (previously focused window), but it doesn't. No window is focused, not even desktop.
Is there a solution for this problem?
note: I'm using Unity 2D, but I don't think this is the reason.