floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
7.1k stars 500 forks source link

Kubuntu: windows placed outside screen #1149

Open floooh opened 1 week ago

floooh commented 1 week ago

...on my new Asus Zenbook with KDE Plasma 6 Wayland session (2880x1800 display and 200% scaling) windows are placed outside the visible screen area.

floooh commented 1 week ago

Hmm ok, that's because for some reason there's an 'Unknown' display in the KDE display setting configured next to the builtin display, and sokol_app.h seems to place the window on that 'Unknown' display.

Disabling that 'ghost display' fixes the problem, but WTAF.

floooh commented 1 week ago

...yeah, the screen-size is reported as the combined monitors by xlib, but I don't seem to be able to detect that situation because the number of screens is reported as 1. Googling around this seems to be a somewhat common issue in Ubuntu 24.x