change miniwindow moving

This commit is contained in:
Eduardo Bart 2011-11-10 03:40:49 -02:00
parent c07dd1066b
commit 578078007b
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,6 @@ bool UIWindow::onMouseRelease(const Point& mousePos, Fw::MouseButton button)
{ {
if(m_moving) { if(m_moving) {
m_moving = false; m_moving = false;
if(m_movePolicy == FREE_UPDATED_MOVE)
updateParentLayout();
return true; return true;
} }
return UIWidget::onMouseRelease(mousePos, button); return UIWidget::onMouseRelease(mousePos, button);
@ -140,6 +138,8 @@ bool UIWindow::onMouseMove(const Point& mousePos, const Point& mouseMoved)
{ {
if(m_moving) { if(m_moving) {
moveTo(mousePos - m_movingReference); moveTo(mousePos - m_movingReference);
if(m_movePolicy == FREE_UPDATED_MOVE)
updateParentLayout();
return true; return true;
} }
return UIWidget::onMouseMove(mousePos, mouseMoved); return UIWidget::onMouseMove(mousePos, mouseMoved);