diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 14:36:55 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-20 14:36:55 +0100 |
| commit | f8a731b10b653a6450fe7c8beea48db9373b32f8 (patch) | |
| tree | 2f527139b63ea95298ac5611df46aff8d265359d /src/layout/DwindleLayout.cpp | |
| parent | decb2f638d875900c859d968726d5941058095e8 (diff) | |
focus to layers
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 9f97cece..b932c222 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -143,7 +143,7 @@ void CHyprDwindleLayout::onWindowCreated(CWindow* pWindow) { } // If it's not, get the last node. - const auto PLASTFOCUS = getNodeFromWindow(g_pCompositor->m_pLastFocus); + const auto PLASTFOCUS = getNodeFromWindow(g_pCompositor->getWindowFromSurface(g_pCompositor->m_pLastFocus)); SDwindleNodeData* OPENINGON = PLASTFOCUS; if (PLASTFOCUS) { if (PLASTFOCUS->monitorID != PNODE->monitorID) { |
