mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Try harder to find an output for the screenshot UI
The mouse might be outside any outputs, let's try to open in that case anyway.
This commit is contained in:
+5
-1
@@ -2508,7 +2508,11 @@ impl Niri {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let Some(default_output) = self.output_under_cursor() else {
|
let default_output = self
|
||||||
|
.output_under_cursor()
|
||||||
|
.or_else(|| self.layout.active_output().cloned())
|
||||||
|
.or_else(|| self.global_space.outputs().next().cloned());
|
||||||
|
let Some(default_output) = default_output else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user