SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Supporting going in and out of remote desktop?

Open paulvirtuel opened this issue 1 year ago • 0 comments

I am wondering if there is something to do in order to support switching back and forth from desktop to remote desktop.

Right now, my game is getting exceptions whenever I switch to remote desktop or when I go back to direct desktop access.

This is not a problem with other games I have tried.

Most of the time it looks like the audio device changing is the cause, in the exception stack, I can see MMDevAPI.dll OnDeviceRemoved. But I also get some exceptions processing message sent by WIN_PumpEvents(SDL_VideoDevice *).

What is the proper way of supporting/detecting a switch from/to remote desktop using SDL2 or SDL3?

Update: Just got another exception caused by a call to DispatchMessage(&msg); in WIN_PumpEvents(SDL_VideoDevice *). The windows message code is 96 if it helps.

paulvirtuel avatar May 02 '24 19:05 paulvirtuel