core: Focus on most recently focused window when switching workspaces
When switching workspaces we previously focused on whatever window is on top of the stack. If a window is marked as "always on top" then it would always receive focus when switching workspaces.
Fixes #2240 (closed)