window is centered across multiple monitors
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 )
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: https://github.com/floooh/sokol/issues/1149 (my new laptop with vanilla Kubuntu installed has a 'phantom screen').
PS: I'll move the issue into the sokol main repository.
I tried the learnopengl sokol examples and it seems to work fine when so ( centered across the left most monitor ).
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.
I just rewrote the window positioning to let X11 pick the position again (however: I'm using a 'centering hint', so I'm not sure what X11 will do in a multi-monitor situation).
In any case. I'll close this ticket. If the problem still exists in the latest sokol version, please reopen or open a new ticket (in that case we should try a different positioning hint, like 'TopLeft').
PS: associated PR: https://github.com/floooh/sokol/pull/1271