GLFW has Wayland support as per the second line of the readme on Github.
- I’m not sure what the behaviour for Wayland is with content scaling but it’s likely that pixels map 1:1 to screen coordinates, so you may want to use
GLFW_SCALE_TO_MONITOR
, see the documentation on window content scale. - I’m unsure what the behaviour of glfwGetMonitorContentScale should be on Wayland. The integer scaling may be correct.
- You cannot draw into the window decorated area, but you can potentially set the window title text and window icon. Note that on Wayland the remarks in the documentation state that the icon cannot be changed. One way around this is to not use a decorated window and then draw your own window decorations.
- You cannot set a windows position on Wayland, see remarks in the glfwSetWindowPos documentation.