diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2025-09-29 15:10:15 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-29 13:10:15 +0100 |
| commit | 4d82cc5957978aad3b291b711f9e9d7653362155 (patch) | |
| tree | 6ce5c3fad79aa3572384dc780c19fd378250d310 /src/layout/MasterLayout.cpp | |
| parent | 43fb4753fcc5ed1eb0c3341b690f72574faa02bc (diff) | |
internal: fix clang-tidy "errors" (#11862)
Diffstat (limited to 'src/layout/MasterLayout.cpp')
| -rw-r--r-- | src/layout/MasterLayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 5d6eaf6f..fa5c77ba 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -1103,8 +1103,8 @@ std::any CHyprMasterLayout::layoutMessage(SLayoutMessageHeader header, std::stri const bool IGNORE_IF_MASTER = vars.size() >= 2 && std::ranges::any_of(vars, [](const auto& e) { return e == "ignoremaster"; }); if (PMASTER->pWindow.lock() != PWINDOW) { - const auto NEWMASTER = PWINDOW; - const bool newFocusToChild = vars.size() >= 2 && vars[1] == "child"; + const auto& NEWMASTER = PWINDOW; + const bool newFocusToChild = vars.size() >= 2 && vars[1] == "child"; switchWindows(NEWMASTER, NEWCHILD); const auto NEWFOCUS = newFocusToChild ? NEWCHILD : NEWMASTER; switchToWindow(NEWFOCUS); |
