Try harder to find an output for the screenshot UI
Browse files at this commit6d7c220137f10b6a5a579043e82a54659488cc04Parent: d77aac11 changed file +5 -1
- src/niri.rs +5 -1
src/niri.rsmodified+5 -1
| @@ -2508,7 +2508,11 @@ impl Niri { | ||
| 2508 | 2508 | return; |
| 2509 | 2509 | } |
| 2510 | 2510 | |
| 2511 | - let Some(default_output) = self.output_under_cursor() else { | |
| 2511 | + let default_output = self | |
| 2512 | + .output_under_cursor() | |
| 2513 | + .or_else(|| self.layout.active_output().cloned()) | |
| 2514 | + .or_else(|| self.global_space.outputs().next().cloned()); | |
| 2515 | + let Some(default_output) = default_output else { | |
| 2512 | 2516 | return; |
| 2513 | 2517 | }; |
| 2514 | 2518 |