diff options
| author | Epilepsy Gatherings <73647246+phonetic112@users.noreply.github.com> | 2024-01-26 07:24:52 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-26 12:24:52 +0000 |
| commit | 5cd7e4587e0ae642ce60415f8e271df2095a3ff2 (patch) | |
| tree | d1ea1779bd88dc484fd94458a93210d8575a0813 /src | |
| parent | 72987dee88a0359d42af9f3064a62b934dcd7be0 (diff) | |
compositor: don't close special on focus on pinned (#4533)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compositor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index cf997e79..a4f7871f 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1015,7 +1015,7 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { /* If special fallthrough is enabled, this behavior will be disabled, as I have no better idea of nicely tracking which window focuses are "via keybinds" and which ones aren't. */ - if (PMONITOR->specialWorkspaceID && PMONITOR->specialWorkspaceID != pWindow->m_iWorkspaceID && !*PSPECIALFALLTHROUGH) + if (PMONITOR->specialWorkspaceID && PMONITOR->specialWorkspaceID != pWindow->m_iWorkspaceID && !pWindow->m_bPinned && !*PSPECIALFALLTHROUGH) PMONITOR->setSpecialWorkspace(nullptr); // we need to make the PLASTWINDOW not equal to m_pLastWindow so that RENDERDATA is correct for an unfocused window |
