From 69573c383f0338201da06e721e29ca6ba4e5298d Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 9 Mar 2024 07:16:07 -0800 Subject: [PATCH] refactor(wm): use notopmost flag instead of bottom It seems like when we use the bottom flag, Rainmeter widgets will be drawn on top of windows that are managed by komorebi. After looking at the GlazeWM codebase, where this issue does not occur, it seems like the difference is made by the use of the notopmost flag. resolve #679 --- komorebi/src/windows_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi/src/windows_api.rs b/komorebi/src/windows_api.rs index 48a148b7..ba46d92e 100644 --- a/komorebi/src/windows_api.rs +++ b/komorebi/src/windows_api.rs @@ -357,7 +357,7 @@ impl WindowsApi { bottom: layout.bottom + shadow_rect.bottom, }; - let position = if top { HWND_TOP } else { HWND_BOTTOM }; + let position = if top { HWND_TOP } else { HWND_NOTOPMOST }; Self::set_window_pos(hwnd, &rect, position, flags.bits()) }