refactor(wm): use notopmost flag instead of bottom

This commit is contained in:
LGUG2Z
2024-03-09 07:16:07 -08:00
parent 40e77fddfe
commit 0f6d1a465c

View File

@@ -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())
}