# How to make undecorated window resizable?

**URL:** <https://discourse.glfw.org/t/how-to-make-undecorated-window-resizable/2414>\
**Category:** support\
**Created:** [July 13, 2023, 11:53am UTC](https://discourse.glfw.org/t/how-to-make-undecorated-window-resizable/2414 "2023-07-13T11:53:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doctor](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/doctor/32/793_2.png) [@doctor](https://discourse.glfw.org/u/doctor)\
**Post date:** [July 13, 2023, 11:53am UTC](https://discourse.glfw.org/t/how-to-make-undecorated-window-resizable/2414/1 "2023-07-13T11:53:14Z")

</div>

Good afternoon!

I want to know how I can make undecorated window resizable. I set glfwWindowHint(GLFW\_DECORATED, GLFW\_FALSE) and am trying to make it so that the window size can be changed like a decorated window. Could you please provide a small code example of how this can be done using the GLFW API and without third-party libraries/or code modification?

---

<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:** [July 13, 2023, 11:57am UTC](https://discourse.glfw.org/t/how-to-make-undecorated-window-resizable/2414/2 "2023-07-13T11:57:30Z")

</div>

You can resize an undecorated window in GLFW with [gflwSetWindowSize](https://www.glfw.org/docs/3.3/group__window.html#ga371911f12c74c504dd8d47d832d095cb).

However since there are no decorations you will have to implement a window resize handle yourself. This can be done by detecting when the mouse button is down in a given area of your window, and resizing the window as it moves.
