Skip to content

Commit

Permalink
refactor(wm): use notopmost flag instead of bottom
Browse files Browse the repository at this point in the history
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
  • Loading branch information
LGUG2Z committed Mar 16, 2024
1 parent 45a3f2a commit 69573c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion komorebi/src/windows_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 69573c3

Please sign in to comment.