From f7c741317fc2084cd63d007292066292585422ad Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 26 Aug 2022 01:08:11 +0200 Subject: [PATCH] fix shadows on silent rule --- src/events/Windows.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index b0cd460f..2ee73fc6 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -338,9 +338,10 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->updateToplevel(); if (!shouldFocus) { - if (g_pCompositor->windowValidMapped(PFOCUSEDWINDOWPREV)) + if (g_pCompositor->windowValidMapped(PFOCUSEDWINDOWPREV)) { g_pCompositor->focusWindow(PFOCUSEDWINDOWPREV); - else if (!PFOCUSEDWINDOWPREV) + PFOCUSEDWINDOWPREV->updateWindowDecos(); // need to for some reason i cba to find out why + } else if (!PFOCUSEDWINDOWPREV) g_pCompositor->focusWindow(nullptr); }