# GLFW\_CURSOR\_DISABLED large values

**URL:** <https://discourse.glfw.org/t/glfw-cursor-disabled-large-values/798>\
**Category:** support\
**Created:** [November 10, 2016, 3:53pm UTC](https://discourse.glfw.org/t/glfw-cursor-disabled-large-values/798 "2016-11-10T15:53:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Ian](https://discourse.glfw.org/u/Ian)\
**Post date:** [November 10, 2016, 3:53pm UTC](https://discourse.glfw.org/t/glfw-cursor-disabled-large-values/798/1 "2016-11-10T15:53:18Z")

</div>

Hello.

Essentially my problem is the same with this one [https://github.com/glfw/glfw/issues/759](https://github.com/glfw/glfw/issues/759) the only thing is that I don’t use a virtual machine or something.

I have arch linux installed with gnome and X if it matters.  
Any ideas why this can happen?

---

<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:** [November 10, 2016, 4:43pm UTC](https://discourse.glfw.org/t/glfw-cursor-disabled-large-values/798/2 "2016-11-10T16:43:24Z")

</div>

Are you getting large values as per your title (which could be normal behaviour), or large delta values ( dX = X(t)-X(t-1) ) different from those you get with the cursor enabled and the same mouse movement?

---

<div class="post-metadata">

**Author:** ![Ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Ian](https://discourse.glfw.org/u/Ian)\
**Post date:** [November 10, 2016, 4:51pm UTC](https://discourse.glfw.org/t/glfw-cursor-disabled-large-values/798/3 "2016-11-10T16:51:48Z")

</div>

Before the answer one question first.

Is GLFWcursorposfun callback supposed to return window coordinates and not deltas even after setting input mode to CURSOR\_DISABLED?

As for my case I get large values and therefore and large deltas (which I manually calculate) after setting that mode.

For example the following data:

146 513  
-668 518  
-1481 523  
-2293 528  
-3105 532  
-3916 536  
-4727 540  
-5537 544  
-6347 548  
-7156 552

are with in ~1.5 second of movement to the right of width which is equal in practice at max 100 pixels to the right

---

<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:** [November 10, 2016, 5:40pm UTC](https://discourse.glfw.org/t/glfw-cursor-disabled-large-values/798/4 "2016-11-10T17:40:52Z")

</div>

With the cursor disabled the values are still in screen coordinates relative to the upper-left corner of the client area of the specified window, but unbounded so can be large.

However you should get the same delta for a given mouse movement as you get with the cursor enabled.

I would do a test with the latest code from Github if possible, and if the problem remains create a new issue on Github with as much information as possible. If you need help with creating the issue let me know.

---

<div class="post-metadata">

**Author:** ![Ian](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@Ian](https://discourse.glfw.org/u/Ian)\
**Post date:** [November 10, 2016, 6:19pm UTC](https://discourse.glfw.org/t/glfw-cursor-disabled-large-values/798/5 "2016-11-10T18:19:44Z")

</div>

Duh found the reason…

For all the others Arch linux users that may end up here:

Through pacman I had installed the glfw-x11 version long ago. After some time and many updates it turns out that I now run on wayland.  
So uninstalling it and installing glfw-wayland version fixed things.

Finally @dougbinks thanks for your replies.

---

<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:** [November 10, 2016, 6:32pm UTC](https://discourse.glfw.org/t/glfw-cursor-disabled-large-values/798/6 "2016-11-10T18:32:37Z")

</div>

Glad you found the solution!
