floooh / sokol

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

fullscreen working every other time on gnome #989

Open Eliyaan opened 4 months ago

Eliyaan commented 4 months ago

Hi, The fullscreen parameter is working unreliably on gnome. Sometimes the window shows up in fullscreen but sometimes it does not. (reproduced it in triangle-sapp.c by adding .fullscreen = true, at line 84)

adding this in void frame(void) {

    if( sapp_frame_count() % 60 == 0 ){
       sapp_toggle_fullscreen();
       slog_func("debug", 1, sapp_is_fullscreen(), "after toggling", __LINE__, __FILE__, 0);
    }

makes the app trigger between fullscreen and window mode, even if initially it is not fullscreen reliably (the app thinks that it is on fullscreen on launch but it is not)

Have a great day!

Environment: Fedora 39 Gnome 45.3 (Wayland)

floooh commented 4 months ago

Yeah, I can reproduce in a GNOME (Wayland) session but not in a KDE (Wayland) session.

I guess GNOME needs to fix this on their side, since it works correctly in KDE.

I'll keep the ticket open in case somebody else wants to investigate.

PS: it definitely worked in older GNOME versions because I only recently switched from GNOME to KDE (after upgrading to Ubuntu 23.10, because tbh I couldn't suffer GNOME's descent into UX madness anymore)