Focus is lost when switching to an empty workspace
Affected version
OS: Ubuntu 22.04 LTS
Gnome: 42.1
XOrg
Bug summary
When switching between workspaces with hotkeys (ctrl+arrows) switching to an empty workspace will make all your focuses on other workspaces gone.
Steps to reproduce
- Open any application and make its active (in the top-left corner the title should be visible)
- Switch to another workspace without any open windows by pressing ctrl+arrow
- Return back and check the focus
What happened
The focus is gone
What did you expect to happen
The focus is there (as it works with workspaces containing at least 1 window)