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:
Kai Uwe Broulik 2023-08-02 22:56:02 +02:00
parent 7c3032777c
commit 53279fd8d3

View file

@ -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