summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorthejch <66577496+thejch@users.noreply.github.com>2024-03-04 15:29:45 -0800
committerGitHub <noreply@github.com>2024-03-04 23:29:45 +0000
commit9c48c322d49ba083ae474bc9131470d89cdce6fd (patch)
tree46e1c29c80b8e8707d36c95610a7b4a9d1cd40f2 /src/Compositor.cpp
parent7a76ab01d16cdeb3bbb11449476d2b8ad84a3fda (diff)
keybinds: Allow fullscreen/maximize in special workspace (#4921)
* allow fullscreen/maximize in special workspace * remove duplicate code * hide top layer * fix special fullscreen deco * edit * fix fade top layer when toggle special * remove double render
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 1f7f6182..69643d10 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -2281,7 +2281,7 @@ void CCompositor::updateFullscreenFadeOnWorkspace(CWorkspace* pWorkspace) {
const auto PMONITOR = getMonitorFromID(pWorkspace->m_iMonitorID);
- if (pWorkspace->m_iID == PMONITOR->activeWorkspace) {
+ if (pWorkspace->m_iID == PMONITOR->activeWorkspace || pWorkspace->m_iID == PMONITOR->specialWorkspaceID) {
for (auto& ls : PMONITOR->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) {
if (!ls->fadingOut)
ls->alpha = FULLSCREEN && pWorkspace->m_efFullscreenMode == FULLSCREEN_FULL ? 0.f : 1.f;