Skip to content

Commit

Permalink
Honour FloatingWindowFlag::DontUseParentForFloatingWindows
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsergio committed Sep 16, 2022
1 parent f2218f8 commit 40d57e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/private/FloatingWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ static Qt::WindowFlags windowFlagsToUse(FloatingWindowFlags requestedFlags)

static MainWindowBase *hackFindParentHarder(Frame *frame, MainWindowBase *candidateParent)
{
const FloatingWindowFlags requestedFlags = frame ? frame->requestedFloatingWindowFlags() : FloatingWindowFlag::FromGlobalConfig;
if (requestedFlags & FloatingWindowFlag::DontUseParentForFloatingWindows) {
// User explicitly requested no parent for this floating window
return nullptr;
}

if (Config::self().internalFlags() & Config::InternalFlag_DontUseParentForFloatingWindows) {
return nullptr;
}
Expand Down

0 comments on commit 40d57e5

Please sign in to comment.