diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-26 01:08:11 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-08-26 01:08:11 +0200 |
| commit | f7c741317fc2084cd63d007292066292585422ad (patch) | |
| tree | b8a807635750cdacc470f405bf7ac4af09887aa2 /src/events/Windows.cpp | |
| parent | b16a57ceeb2c9fefb0fad444d763211254d36971 (diff) | |
fix shadows on silent rule
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 5 |
1 files 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); } |
