utils: Abstract built-in output check

This commit is contained in:
Victoria Brekenfeld 2025-07-29 15:56:26 +02:00 committed by Victoria Brekenfeld
parent d6c1ca8c33
commit 8648d4450e
2 changed files with 7 additions and 4 deletions

View file

@ -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> {