# glfwSetMousePosCallback fails when mouse is disabled

**URL:** <https://discourse.glfw.org/t/glfwsetmouseposcallback-fails-when-mouse-is-disabled/32>\
**Category:** support\
**Created:** [December 27, 2013, 9:27pm UTC](https://discourse.glfw.org/t/glfwsetmouseposcallback-fails-when-mouse-is-disabled/32 "2013-12-27T21:27:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [December 27, 2013, 9:27pm UTC](https://discourse.glfw.org/t/glfwsetmouseposcallback-fails-when-mouse-is-disabled/32/1 "2013-12-27T21:27:42Z")

</div>

**[larsp123](https://sourceforge.net/u/larsp123/)** wrote on [Friday, December 27, 2013](https://sourceforge.net/p/glfw/discussion/247562/thread/e676736e/#96d7):

Version: 2.7.2  
System: Linux Mint 16

If I first disable the mouse cursor with glfwDisable(GLFW\_MOUSE\_CURSOR), the callback registered by glfwSetMousePosCallback() is still called as expected, but the mouse coordinates do not update consistently. That is, they hardly change at all. It works on Windows MinGW, however.

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [January 3, 2014, 6:24pm UTC](https://discourse.glfw.org/t/glfwsetmouseposcallback-fails-when-mouse-is-disabled/32/2 "2014-01-03T18:24:02Z")

</div>

**[larsp123](https://sourceforge.net/u/larsp123/)** wrote on [Friday, January 03, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/e676736e/#6895):

This seems to have been fixed in 2.7.3, using tests/peter.c for validation.
