raysan5 / raylib

A simple and easy-to-use library to enjoy videogames programming
http://www.raylib.com
zlib License
22.17k stars 2.24k forks source link

[rcore][DESKTOP_RGFW] `ToggleFullscreen()` and `ToggleBorderlessWindowed()` not working on Linux ? #4140

Closed SuperUserNameMan closed 3 weeks ago

SuperUserNameMan commented 3 months ago

So i was testing the RGFW backend to compare with GLFW backend on my Linux, and found ToggleFullscreen() just does not work.

The window is just moved to the top left corner without even resizing.

The console show : WARNING: ToggleBorderlessWindowed() after window creation not available on target platform

ColleagueRiley commented 3 months ago

This should be fixed by this PR https://github.com/raysan5/raylib/pull/4144

I'm pretty sure ToggleFullscreen() won't work properly unless you enable the allow resize flags (with raylib). SetConfigFlags(FLAG_WINDOW_RESIZABLE); (before the window is created)

SuperUserNameMan commented 3 months ago

This should be fixed by this PR #4144

I'm pretty sure ToggleFullscreen() won't work properly unless you enable the allow resize flags (with raylib). SetConfigFlags(FLAG_WINDOW_RESIZABLE); (before the window is created)

Enabling ...RESIZEABLE with ToggleFullscreen creates issues with the GLFW backend :-/

ColleagueRiley commented 3 months ago

I'm not sure how GLFW handles this, but RGFW allows resizing by default unless the RGFW_NO_RESIZE argument is passed to the createWindow function.