Properly test internal window flags

Qt::Popup is a mask, so we cannot use the `&` operator to test the window
type. We need to use QFlags::testFlag() for that purpose instead.
master
Vlad Zahorodnii 2020-09-23 18:18:40 +03:00
parent bc34736534
commit 70700b868a
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ bool InternalClient::isResizable() const
bool InternalClient::isPlaceable() const
{
return !(m_internalWindowFlags & Qt::BypassWindowManagerHint) && !(m_internalWindowFlags & Qt::Popup);
return !m_internalWindowFlags.testFlag(Qt::BypassWindowManagerHint) && !m_internalWindowFlags.testFlag(Qt::Popup);
}
bool InternalClient::noBorder() const