forge
Explore
Log in

Don't you dare go Hollow

Try harder to find an output for the screenshot UI

Browse files at this commit

6d7c220137f10b6a5a579043e82a54659488cc04Ivan MolodetskikhParent: d77aac1
The mouse might be outside any outputs, let's try to open in that case
anyway.
src/niri.rsmodified+5 -1
@@ -2508,7 +2508,11 @@ impl Niri {
25082508 return;
25092509 }
25102510
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 {
25122516 return;
25132517 };
25142518