RGFW icon indicating copy to clipboard operation
RGFW copied to clipboard

[Wayland] begin adding pointer warp

Open uni-dos opened this issue 4 months ago • 8 comments

This allows users to move the cursor to a specific part of a surface.

uni-dos avatar Oct 29 '25 22:10 uni-dos

wayland-scanner client-header /usr/share/wayland-protocols/staging/pointer-warp/pointer-warp-v1.xml pointer-warp-v1.h Could not open input file: No such file or directory

ColleagueRiley avatar Nov 15 '25 23:11 ColleagueRiley

Its in a newer version of Wayland-protocols

uni-dos avatar Nov 16 '25 03:11 uni-dos

Then we will probably have to include the .xml files in RGFW and make loading them locally optional.

ColleagueRiley avatar Nov 16 '25 14:11 ColleagueRiley

Yeah that's what I was thinking but I didn't want to include it because of the license.

uni-dos avatar Nov 16 '25 23:11 uni-dos

What's the license? GLFW does it and uses the same license as RGFW without any issues.

ColleagueRiley avatar Nov 16 '25 23:11 ColleagueRiley

The license seems to be a standard MIT license which is pretty permissive and compatible with zlib.

ColleagueRiley avatar Nov 16 '25 23:11 ColleagueRiley

I do not have experience with makefile conditionals. I have not been able to test if the file exists.

uni-dos avatar Nov 17 '25 18:11 uni-dos

Yeah Makefile can be pretty annoying about that type of thing. I'm sure I could write something really quick but I think what we should do is this:

  1. RGFW ships with all the .xml files it uses by default

  2. the user can run a method which fetches the user's local files

ColleagueRiley avatar Nov 18 '25 03:11 ColleagueRiley