Utility/Win32: Fix cached position never getting updated with threaded windows
Closes #104
This commit is contained in:
parent
12f6877963
commit
581cc989de
|
|
@ -792,12 +792,17 @@ namespace Nz
|
||||||
RECT windowRect;
|
RECT windowRect;
|
||||||
GetWindowRect(m_handle, &windowRect);
|
GetWindowRect(m_handle, &windowRect);
|
||||||
|
|
||||||
WindowEvent event;
|
Vector2i position(windowRect.left, windowRect.top);
|
||||||
event.type = WindowEventType_Moved;
|
if (m_position != position)
|
||||||
event.position.x = windowRect.left;
|
{
|
||||||
event.position.y = windowRect.top;
|
m_position = position;
|
||||||
m_parent->PushEvent(event);
|
|
||||||
|
|
||||||
|
WindowEvent event;
|
||||||
|
event.type = WindowEventType_Moved;
|
||||||
|
event.position.x = position.x;
|
||||||
|
event.position.y = position.y;
|
||||||
|
m_parent->PushEvent(event);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue