summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxmu/nxmu_mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/graphics/nxmu/nxmu_mouse.c')
-rw-r--r--nuttx/graphics/nxmu/nxmu_mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/graphics/nxmu/nxmu_mouse.c b/nuttx/graphics/nxmu/nxmu_mouse.c
index 80ab60cb7..0bcb09a34 100644
--- a/nuttx/graphics/nxmu/nxmu_mouse.c
+++ b/nuttx/graphics/nxmu/nxmu_mouse.c
@@ -128,7 +128,7 @@ int nxmu_mousereport(struct nxbe_window_s *wnd)
outmsg.msgid = NX_CLIMSG_MOUSEIN;
outmsg.wnd = wnd;
outmsg.buttons = g_mbutton;
- nxgl_vectsubtract(&outmsg.pos, &g_mpos, &wnd->origin);
+ nxgl_vectsubtract(&outmsg.pos, &g_mpos, &wnd->bounds.pt1);
ret = mq_send(wnd->conn->swrmq, &outmsg,
sizeof(struct nxclimsg_mousein_s), NX_SVRMSG_PRIO);