mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-18 14:48:34 +01:00
fix(wm): don't reconcile monitors during drag
This commit ensures that monitor reconciliation doesn't get triggered eagerly when a cross-monitor mouse drag/move of a window is taking place.
This commit is contained in:
1 parent
7b98b563eb
commit
035e77bd25
1 file changed
+4
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user