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

window is centered across multiple monitors #1189

Open
salloom-domani opened this issue Jan 16, 2025 · 3 comments
Open

window is centered across multiple monitors #1189

salloom-domani opened this issue Jan 16, 2025 · 3 comments

Comments

@salloom-domani
Copy link

salloom-domani commented Jan 16, 2025

I have dual monitor setup ( my laptop next to another monitor )
Linux: 6.12.9-arch1-1
Desktop: gnome wayland
Dispaly1: Built-in 1920x1080
Dispaly2: External 1920x1080
with some debugging I discovered that x11 display is considered as one unit ( combining the two widths of the monitors )

@floooh
Copy link
Owner

floooh commented Jan 16, 2025

Yeah, kinda known issue, don't know yet how to solve this best, even when going back to aligning the window position to the top-left, the default window size would still be computed wrong :/

There's even a worse issue on some Linux configs: #1149 (my new laptop with vanilla Kubuntu installed has a 'phantom screen').

PS: I'll move the issue into the sokol main repository.

@floooh floooh self-assigned this Jan 16, 2025
@floooh floooh transferred this issue from floooh/sokol-odin Jan 16, 2025
@salloom-domani
Copy link
Author

I tried the learnopengl sokol examples and it seems to work fine when so ( centered across the left most monitor ).

@floooh
Copy link
Owner

floooh commented Jan 16, 2025

Oh - good to know :) Need to check what version of sokol_app.h those are using, might make sense to roll the fancy default-window sizing and positioning back to how it's done there.

@floooh floooh moved this to Todo in sokol todo Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants