Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(workspaces): let set_foreground_window fail
When hiding/restoring windows as part of workspace switching, calls to SetForegroundWindow fail, and if they fail, other hidden windows get lost forever in hidden mode when the error is returned up the call chain using the ? operator. This commit separates out the focus() calls from the loops restoring windows when switching workspaces, and also ensures that calls to SetForegroundWindow will log an error, but ultimately continue to the end of the focus() function call.
- Loading branch information