layout: Fix workspace output updating
Browse files at this commitcfa73c153cc6ae2f1c21dcbbc8e755b265babbd2Parent: dbcd6671 changed file +3 -3
- src/layout.rs +3 -3
src/layout.rsmodified+3 -3
| @@ -1345,10 +1345,10 @@ impl<W: LayoutElement> Workspace<W> { | |||
| 1345 | } | 1345 | } |
| 1346 | } | 1346 | } |
| 1347 | 1347 | ||
| 1348 | - if let Some(output) = output { | 1348 | + self.output = output; |
| 1349 | - self.set_view_size(output_size(&output)); | ||
| 1350 | 1349 | ||
| 1351 | - self.output = Some(output); | 1350 | + if let Some(output) = &self.output { |
| 1351 | + self.set_view_size(output_size(output)); | ||
| 1352 | 1352 | ||
| 1353 | for win in self.windows() { | 1353 | for win in self.windows() { |
| 1354 | self.enter_output_for_window(win); | 1354 | self.enter_output_for_window(win); |