mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-08 14:05:10 +02: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:
@@ -329,6 +329,10 @@ impl WindowManager {
|
|||||||
|
|
||||||
#[tracing::instrument(skip(self))]
|
#[tracing::instrument(skip(self))]
|
||||||
pub fn reconcile_monitors(&mut self) -> Result<()> {
|
pub fn reconcile_monitors(&mut self) -> Result<()> {
|
||||||
|
if self.pending_move_op.is_some() {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
let valid_hmonitors = WindowsApi::valid_hmonitors()?;
|
let valid_hmonitors = WindowsApi::valid_hmonitors()?;
|
||||||
let mut valid_names = vec![];
|
let mut valid_names = vec![];
|
||||||
let before_count = self.monitors().len();
|
let before_count = self.monitors().len();
|
||||||
|
|||||||
Reference in New Issue
Block a user