sokol icon indicating copy to clipboard operation
sokol copied to clipboard

Kubuntu: windows placed outside screen

Open floooh opened this issue 1 year ago • 2 comments

...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 avatar Nov 12 '24 15:11 floooh

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 avatar Nov 12 '24 15:11 floooh

...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

floooh avatar Nov 12 '24 17:11 floooh

This PR lets X11 pick the window position: https://github.com/floooh/sokol/pull/1271

floooh avatar May 26 '25 14:05 floooh