Remove unnecessary window clone
Browse files at this commit99e75b95b7ae34d64d26702f8ace6364279f5413Parent: 489a2251 changed file +1 -1
- src/layout/monitor.rs +1 -1
src/layout/monitor.rsmodified+1 -1
| @@ -111,7 +111,7 @@ impl<W: LayoutElement> Monitor<W> { | |||
| 111 | ) { | 111 | ) { |
| 112 | let workspace = &mut self.workspaces[workspace_idx]; | 112 | let workspace = &mut self.workspaces[workspace_idx]; |
| 113 | 113 | ||
| 114 | - workspace.add_window(window.clone(), activate, width, is_full_width); | 114 | + workspace.add_window(window, activate, width, is_full_width); |
| 115 | 115 | ||
| 116 | // After adding a new window, workspace becomes this output's own. | 116 | // After adding a new window, workspace becomes this output's own. |
| 117 | workspace.original_output = OutputId::new(&self.output); | 117 | workspace.original_output = OutputId::new(&self.output); |