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.
10,990 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,486 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,603 questions
{count} votes