Skip to content

Commit

Permalink
fix(wm): don't reconcile monitors during drag
Browse files Browse the repository at this point in the history
This commit ensures that monitor reconciliation doesn't get triggered
eagerly when a cross-monitor mouse drag/move of a window is taking
place.
  • Loading branch information
LGUG2Z committed Nov 9, 2022
1 parent 7b98b56 commit 035e77b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions komorebi/src/window_manager.rs
Expand Up @@ -329,6 +329,10 @@ impl WindowManager {

#[tracing::instrument(skip(self))]
pub fn reconcile_monitors(&mut self) -> Result<()> {
if self.pending_move_op.is_some() {
return Ok(());
}

let valid_hmonitors = WindowsApi::valid_hmonitors()?;
let mut valid_names = vec![];
let before_count = self.monitors().len();
Expand Down

0 comments on commit 035e77b

Please sign in to comment.