Prevent Auto Switching of Virtual Desktop

JChild 21 Reputation points
2022-04-18T16:54:57.97+00:00

I have an application that I would like to run on a second desktop. I interact with that application in such a way that the application occasionally steals focus and Windows automatically switches to the second desktop. I don't have any way to change the application as it is a third party application. Is there a way to prevent Windows from automatically switching to the second virtual desktop? Or if not, is there a way to prevent an application from taking focus?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,523 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,636 questions
{count} votes