# Is it possible to change the default origin in client area?

**URL:** <https://discourse.glfw.org/t/is-it-possible-to-change-the-default-origin-in-client-area/1292>\
**Category:** support\
**Created:** [March 13, 2019, 6:30pm UTC](https://discourse.glfw.org/t/is-it-possible-to-change-the-default-origin-in-client-area/1292 "2019-03-13T18:30:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Papasot](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/papasot/32/192_2.png) [@Papasot](https://discourse.glfw.org/u/Papasot)\
**Post date:** [March 13, 2019, 6:30pm UTC](https://discourse.glfw.org/t/is-it-possible-to-change-the-default-origin-in-client-area/1292/1 "2019-03-13T18:30:49Z")

</div>

Hello, GLFW community,  
by default, GLFW sets the origin (0,0) of a GLFW window (client area) to the top-left corner. so functions like [glfwGetCursorPos()](https://www.glfw.org/docs/latest/group__input.html#ga01d37b6c40133676b9cea60ca1d7c0cc) return the y-coordinate relative to the top-left corner of the window. This is customary in many APIs but not the default in OpenGL, and not what one would expect from a mathematical point of view.

I am developing a multimedia API and opted to use a more “natural” origin, set at the bottom-left corner, or at least a coordinate system where the y-coordinate increases **upwards** , not downwards. Given that GLFW behaves otherwise, I have to modify the output of GLFW functions like glfwGetCursorPos(). However, that means I have to pass the window’s vertical size in any subroutine that needs to call glfwGetCursorPos() - or any other GLFW function that returns window coordinates. I would prefer not to be forced to do that. So my question is, is it possible to change the default origin for the client area in GLFW? I was looking for such an option but couldn’t find any.

---

<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:** [March 15, 2019, 9:27am UTC](https://discourse.glfw.org/t/is-it-possible-to-change-the-default-origin-in-client-area/1292/2 "2019-03-15T09:27:51Z")

</div>

This isn’t possible, and since it’s so easy to do in client code I don’t think it’s a good idea to add to glfw.
