utils: Abstract built-in output check
This commit is contained in:
parent
d6c1ca8c33
commit
8648d4450e
2 changed files with 7 additions and 4 deletions
|
|
@ -2042,10 +2042,7 @@ impl Shell {
|
|||
}
|
||||
|
||||
pub fn builtin_output(&self) -> Option<&Output> {
|
||||
self.outputs().find(|output| {
|
||||
let name = output.name();
|
||||
name.starts_with("eDP-") || name.starts_with("LVDS-") || name.starts_with("DSI-")
|
||||
})
|
||||
self.outputs().find(|output| output.is_internal())
|
||||
}
|
||||
|
||||
pub fn global_space(&self) -> Rectangle<i32, Global> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue