From ecadcabfa96253d903fb3d8eb736a3d8e6d02915 Mon Sep 17 00:00:00 2001 From: REMqb Date: Wed, 22 Nov 2017 00:35:32 +0100 Subject: [PATCH] ~ Fix position of the mouse was set after the event callbacks were run. (#143) --- src/Nazara/Platform/X11/WindowImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Nazara/Platform/X11/WindowImpl.cpp b/src/Nazara/Platform/X11/WindowImpl.cpp index 7ceefa701..7afccf784 100644 --- a/src/Nazara/Platform/X11/WindowImpl.cpp +++ b/src/Nazara/Platform/X11/WindowImpl.cpp @@ -1257,11 +1257,12 @@ namespace Nz event.mouseMove.deltaY = motionNotifyEvent->event_y - m_mousePos.y; event.mouseMove.x = motionNotifyEvent->event_x; event.mouseMove.y = motionNotifyEvent->event_y; - m_parent->PushEvent(event); m_mousePos.x = motionNotifyEvent->event_x; m_mousePos.y = motionNotifyEvent->event_y; + m_parent->PushEvent(event); + break; }