Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get/SetDesktopIsPerMonitor() #49

Open
Ian-Pratt opened this issue Jan 6, 2025 · 1 comment
Open

Get/SetDesktopIsPerMonitor() #49

Ian-Pratt opened this issue Jan 6, 2025 · 1 comment

Comments

@Ian-Pratt
Copy link

Hi, thanks for the great work on PSVirtualDesktop!

Looking through the src, I'm intrigued by the new Get/SetDesktopIsPerMonitor() calls that you've found in the COM interface -- I haven't found them mentioned anywhere else on the web.

Do you happen to know whether SetDesktopIsPerMonitor(true) might result in each monitor in a multi-monitor setup getting its own virtual desktop instance, hence enabling virtual desktops to be created and switched independently on each monitor rather than the default situation of a single virtual desktop spanning all monitors? This is a feature I've been wanting forever.

I notice that the current PSVirtualDesktop code doesn't define Get/SetDesktopIsPerMonitor for OSBuild 26100, and doesn't expose it as a cmdlet.

I'm not very familiar with powershell but I'll have a go plumbing this through unless you already know that it won't do what I wish? Thanks!

@MScholtes
Copy link
Owner

MScholtes commented Jan 9, 2025

Hello @Ian-Pratt,

I used SetDesktopIsPerMonitor(true) to delete all virtual desktops but the actual one, I could not find out any use for multiple monitors. The API definition was removed with Windows 11 23H2 (build 22631) , so I had to remove the declaration.

Maybe it is still present somewhere, but there is no documentation.

Greetings

Markus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants