# GLFW Clipboard methods require window pointer

**URL:** <https://discourse.glfw.org/t/glfw-clipboard-methods-require-window-pointer/1012>\
**Category:** dev\
**Created:** [October 6, 2017, 11:55am UTC](https://discourse.glfw.org/t/glfw-clipboard-methods-require-window-pointer/1012 "2017-10-06T11:55:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShchAlexander](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/shchalexander/32/149_2.png) [@ShchAlexander](https://discourse.glfw.org/u/ShchAlexander)\
**Post date:** [October 6, 2017, 11:55am UTC](https://discourse.glfw.org/t/glfw-clipboard-methods-require-window-pointer/1012/1 "2017-10-06T11:55:03Z")

</div>

I checked sources and couldn’t find any implementation of `glfwGetClipboardString` and `glfwSetClipboardString` which use window pointer.  
Do we really need window parameter in these functions?

---

<div class="post-metadata">

**Author:** ![elmindreda](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/elmindreda/32/26_2.png) [@elmindreda](https://discourse.glfw.org/u/elmindreda)\
**Post date:** [October 10, 2017, 8:54pm UTC](https://discourse.glfw.org/t/glfw-clipboard-methods-require-window-pointer/1012/2 "2017-10-10T20:54:09Z")

</div>

Correct, the window pointer argument is no longer used on any platform, however there are still asserts that check whether the pointer is `NULL`. You can pass in `NULL` on release builds on Windows, macOS and X11. It may be safe on Wayland as well so I will look into deprecating the window pointer parameter and removing the asserts before 3.3 release.

It will likely be removed entirely for 4.0.
