InternalWindow: Don't be movable on a dialog with BypassWindowManagerHint
Such a dialog isn't placeable, so it shouldn't be movable. Fixes being able to move the tabbox around if Alt is the modifier key for moving windows.
This commit is contained in:
parent
7c3032777c
commit
53279fd8d3
1 changed files with 2 additions and 2 deletions
|
@ -188,12 +188,12 @@ bool InternalWindow::isCloseable() const
|
|||
|
||||
bool InternalWindow::isMovable() const
|
||||
{
|
||||
return true;
|
||||
return !m_internalWindowFlags.testFlag(Qt::BypassWindowManagerHint) && !m_internalWindowFlags.testFlag(Qt::Popup);
|
||||
}
|
||||
|
||||
bool InternalWindow::isMovableAcrossScreens() const
|
||||
{
|
||||
return true;
|
||||
return !m_internalWindowFlags.testFlag(Qt::BypassWindowManagerHint) && !m_internalWindowFlags.testFlag(Qt::Popup);
|
||||
}
|
||||
|
||||
bool InternalWindow::isResizable() const
|
||||
|
|
Loading…
Reference in a new issue