Commit d8c6d4ea authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix layer properties window draws on top of other application windows

Patch by Carl Olsson, thanks!

BUG:408170
Differential Revision: https://phabricator.kde.org/D21530
parent d2e9a09b
......@@ -305,7 +305,7 @@ void KisLayerManager::layerProperties()
dlg->resize(dlg->minimumSizeHint());
Qt::WindowFlags flags = dlg->windowFlags();
dlg->setWindowFlags(flags | Qt::WindowStaysOnTopHint | Qt::Dialog);
dlg->setWindowFlags(flags | Qt::Tool | Qt::Dialog);
dlg->show();
}
......@@ -347,7 +347,7 @@ void KisLayerManager::layerProperties()
dialog->resize(dialog->minimumSizeHint());
dialog->setAttribute(Qt::WA_DeleteOnClose);
Qt::WindowFlags flags = dialog->windowFlags();
dialog->setWindowFlags(flags | Qt::WindowStaysOnTopHint | Qt::Dialog);
dialog->setWindowFlags(flags | Qt::Tool | Qt::Dialog);
dialog->show();
}
......@@ -378,7 +378,7 @@ void KisLayerManager::changeCloneSource()
dialog->resize(dialog->minimumSizeHint());
dialog->setAttribute(Qt::WA_DeleteOnClose);
Qt::WindowFlags flags = dialog->windowFlags();
dialog->setWindowFlags(flags | Qt::WindowStaysOnTopHint | Qt::Dialog);
dialog->setWindowFlags(flags | Qt::Tool | Qt::Dialog);
dialog->show();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment