# Using GLFW under Wayland

**URL:** <https://discourse.glfw.org/t/using-glfw-under-wayland/1547>\
**Category:** dev\
**Created:** [April 24, 2020, 9:09am UTC](https://discourse.glfw.org/t/using-glfw-under-wayland/1547 "2020-04-24T09:09:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [April 24, 2020, 10:03am UTC](https://discourse.glfw.org/t/using-glfw-under-wayland/1547/2 "2020-04-24T10:03:43Z")

</div>

GLFW has Wayland support as per the second line of the [readme on Github](https://github.com/glfw/glfw).

1. 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](https://www.glfw.org/docs/3.3/window_guide.html#window_scale).
2. I’m unsure what the behaviour of [glfwGetMonitorContentScale](https://www.glfw.org/docs/3.3/group__monitor.html#gad3152e84465fa620b601265ebfcdb21b) should be on Wayland. The integer scaling may be correct.
3. You cannot draw into the window decorated area, but you can potentially set the [window title text](https://www.glfw.org/docs/3.3/window_guide.html#window_title) and [window icon](https://www.glfw.org/docs/3.3/group__window.html#gadd7ccd39fe7a7d1f0904666ae5932dc5). 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.
4. You cannot set a windows position on Wayland, see remarks in the [glfwSetWindowPos documentation](https://www.glfw.org/docs/3.3/group__window.html#ga1abb6d690e8c88e0c8cd1751356dbca8).

---

_[View the full topic](https://discourse.glfw.org/t/using-glfw-under-wayland/1547)._
