feat(wm): allow scrolling layout with >1 monitors

This commit takes some inspiration from a trick I implemented in the
komorebi for Mac codebase to hide windows that are not within the
horizontal bounds of the work space area when the scrolling layer is
active.

Doing this ensures that such windows will not spill over into adjacent
monitors (or at least, not for very long).

There are some additional changes required in komorebi for Windows to
try and make sure this plays nicely with the animations feature, which
is not present in komorebi for Mac.
This commit is contained in:
LGUG2Z
2025-10-29 21:09:37 -07:00
parent 18ee667896
commit 1f9a66d5dc
7 changed files with 64 additions and 30 deletions
+1 -1
View File
@@ -802,7 +802,7 @@ impl Komobar {
pub fn position_bar(&self) {
if let Some(hwnd) = self.hwnd {
let window = komorebi_client::Window::from(hwnd);
match window.set_position(&self.size_rect, false) {
match window.set_position(&self.size_rect, false, false) {
Ok(_) => {
tracing::info!("updated bar position");
}