Enforced move window conditions in mouse move event.

git-svn-id: http://voip.null.ro/svn/yate@2491 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2009-02-23 13:57:15 +00:00
parent 081c2ce1bb
commit c2e3b7e36d
1 changed files with 1 additions and 1 deletions

View File

@ -2168,7 +2168,7 @@ void QtWindow::mouseReleaseEvent(QMouseEvent* event)
// Move the window if the moving flag is set
void QtWindow::mouseMoveEvent(QMouseEvent* event)
{
if (!m_moving)
if (!m_moving || Qt::LeftButton != event->buttons() || isMaximized())
return;
int cx = event->globalPos().x() - m_movePos.x();
int cy = event->globalPos().y() - m_movePos.y();