raylib icon indicating copy to clipboard operation
raylib copied to clipboard

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

Open SuperUserNameMan opened this issue 1 year ago • 3 comments

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

SuperUserNameMan avatar Jul 08 '24 14:07 SuperUserNameMan

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)

ColleagueRiley avatar Jul 08 '24 16:07 ColleagueRiley

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 :-/

SuperUserNameMan avatar Jul 08 '24 17:07 SuperUserNameMan

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.

ColleagueRiley avatar Jul 08 '24 17:07 ColleagueRiley