mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Fix losing track of window on move to output if there are none
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user