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:
parent
081c2ce1bb
commit
c2e3b7e36d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue