mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 10:45:37 +08:00
Fixed masking issue
(failed when neither on top nor on bottom was set)
This commit is contained in:
@@ -292,12 +292,12 @@ namespace BlackGui
|
|||||||
Qt::WindowFlags flags = widget->windowFlags();
|
Qt::WindowFlags flags = widget->windowFlags();
|
||||||
if (Qt::WindowStaysOnTopHint & flags)
|
if (Qt::WindowStaysOnTopHint & flags)
|
||||||
{
|
{
|
||||||
flags ^= Qt::WindowStaysOnTopHint;
|
flags &= ~Qt::WindowStaysOnTopHint;
|
||||||
flags |= Qt::WindowStaysOnBottomHint;
|
flags |= Qt::WindowStaysOnBottomHint;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
flags ^= Qt::WindowStaysOnBottomHint;
|
flags &= ~Qt::WindowStaysOnBottomHint;
|
||||||
flags |= Qt::WindowStaysOnTopHint;
|
flags |= Qt::WindowStaysOnTopHint;
|
||||||
}
|
}
|
||||||
widget->setWindowFlags(flags);
|
widget->setWindowFlags(flags);
|
||||||
|
|||||||
Reference in New Issue
Block a user