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

Fullscreen mode does not respect primary monitor setting in KDE #580

Open
thecnoNSMB opened this issue Jan 22, 2025 · 3 comments
Open

Fullscreen mode does not respect primary monitor setting in KDE #580

thecnoNSMB opened this issue Jan 22, 2025 · 3 comments

Comments

@thecnoNSMB
Copy link

thecnoNSMB commented Jan 22, 2025

DSDA-Doom 0.28.1 insists on running full-screen on my secondary monitor, apparently because it's listed first in the display order, even though it should probably be full screen on whatever monitor the system indicates is the primary monitor. Switching which monitor is the primary monitor does not affect this behavior. I'm running Nobara (Fedora) 41, KDE Wayland with Nvidia GPU.

@Pedro-Beirao
Copy link
Collaborator

From what Ive found, SDL2 doesnt know which is the primary monitor, it simply uses the first index.

You can use the config option sdl_video_window_pos "x,y" to move the window to your primary monitor, but you will notice that on fullscreen, it still puts it in your secondary.

Ive found a way to fix it and will make a PR shortly
But know that you will need to manually edit the config file to force the window to the primary display

@Pedro-Beirao
Copy link
Collaborator

Besides what I said, I also implemented a new config option for setting the display index. You will just need to set sdl_video_display_index to 1

@thecnoNSMB
Copy link
Author

Thank you for the prompt response! I suppose if SDL2 doesn't have that information then this would be the best solution, then.

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