just some comments

This commit is contained in:
Eduardo Bart
2011-11-03 14:14:40 -02:00
parent 4fb59e25f4
commit dff57ecfe7
2 changed files with 8 additions and 2 deletions

View File

@@ -123,6 +123,7 @@ bool UIWindow::onMousePress(const Point& mousePos, Fw::MouseButton button)
{
if(m_movePolicy != DONT_MOVE) {
UIWidgetPtr clickedChild = getChildByPos(mousePos);
//FIXME: recursively check for non phantom children
if(!clickedChild || clickedChild->isPhantom()) {
m_moving = true;
m_movingReference = mousePos - getRect().topLeft();