-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMPORTANT] GLFW error and wrong (0,0) position #354
Comments
Well, the error is normal as Wayland doesn't support setting the window position. With the latest GLFW update binary now supports both X11 and Wayland and it will detect what to use in runtime (based on XDG_SESSION_TYPE). What is not normal is that the coordinates are off, what compositor you are using? I tested a few examples and all works for me with |
The If you can, please also test with |
Check the output, when you see GLFW Wayland errors it is using Wayland. When you build with |
Also, if you already checked SDL, try to force wayland then force x11, to make sure it is not using the compatibility layer there. I mean, force with |
with x11 build tag, its working. Both sdl2 wayland and x11 seem to work aswell |
Yes, you must use the x11 tag if you want the old behavior, the old one was to use X11. |
Alright, then it seems to be a problem with glfw and wayland i assume? |
Yes, to be precise, with GLFW, Wayland, and GNOME/mutter, I guess it would work in KDE/Kwin, and I did a test in labwc where works. |
I see, good to know. Then the issue is resolved :D you can close it now |
When added the newest raylib-go version to the project
(v0.0.0-20240227065410-00f5f785e6ec)
GLFW throws following errors:and every coordinate is off.
For example:
In the example the text should be rendered in (190,200), but when running this with the newest version of the module the text is in a different position
I've tried a program, which uses an older version of the module
(v0.0.0-20240125111008-83d871a38f28)
where no warnings appear and the (0,0) point is set correctly in the top left corner.The text was updated successfully, but these errors were encountered: