Hm, yeah, if the game is trying to start in full-screen mode with a non-default resolution, then there's going to be a problem since we can't do mode switches on wayland, but DXVK is also not in any position to "emulate" arbitrary resolutions.
I guess one thing to explore is whether or not only reporting the current display mode to the app fixes the problem, but that creates even more fun issues since we don't really know if we're on Wayland or not, and games may not necessarily be happy with whatever display mode you're running either.
Is the idea of this logic to make the window the same size as the screen and pin it to the top corner?
Seems on wayland that moving the window is disallowed and might need to check the error code if that is the case and just resize the window instead.
Ive also notice this same issue when steam launches the windows version of the same game using wine.
I'm running into this issue as well when using DXVK-native on Far Cry's D3D9 renderer. Disabling the SDL_SetWindowPosition call makes setting fullscreen fine. Checking the output for SDL_GetError to decide whether to fail might be a good idea.
Not sure how you're using dxvk-native on a Windows game, but the problem with removing the call or ignoring the error is that it's just going to break multi-monitor setups, and actual Windows apps (as opposed to native apps that are aware of Wayland design decisions) will just expect these things to work anyway.
I guess ignoring the error is somewhat tolerable, but it's not going to work properly.
Sorry, I should have clarified, I'm integrating DXVK-native on a source port of Far Cry based on leaked source code.
Playing C&C Generals Zero Hour on Ubuntu 25.10 fails to start in full screen with the following error:
Tracing it down with a custom build of dxvk it seems disabling the call to set window position (only doing if not switching modes) here makes every thing work, though no idea what else that breaks.
https://github.com/doitsujin/dxvk/blob/36f23aa729036d51a093c9dbc724135c5c794f5c/src/wsi/sdl3/wsi_window_sdl3.cpp#L96
Software information
C&C Generals Zero Hour (Linux native build)
https://github.com/Fighter19/CnC_Generals_Zero_Hour
System information