aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/layout.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout.rs b/src/layout.rs
index 0d288211..97fe60e7 100644
--- a/src/layout.rs
+++ b/src/layout.rs
@@ -1211,6 +1211,10 @@ impl<W: LayoutElement> Layout<W> {
}
pub fn move_window_to_output(&mut self, window: W, output: &Output) {
+ if !matches!(&self.monitor_set, MonitorSet::Normal { .. }) {
+ return;
+ }
+
self.remove_window(&window);
if let MonitorSet::Normal { monitors, .. } = &mut self.monitor_set {