Initial wl_touch support
`builtin_output` is similar to `get_builtin_output_name` in Sway. For full support, we need support for touch targets/grabs, touch support for SSDs, and a way to configure what output is mapped to what input. But this is usable for apps that support touch on a laptop with a touchscreen.
This commit is contained in:
parent
144f8cbf69
commit
70bb9b9a2e
2 changed files with 103 additions and 4 deletions
|
|
@ -1326,6 +1326,13 @@ impl Shell {
|
|||
.map(|(o, _)| o)
|
||||
}
|
||||
|
||||
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-")
|
||||
})
|
||||
}
|
||||
|
||||
pub fn global_space(&self) -> Rectangle<i32, Global> {
|
||||
self.outputs()
|
||||
.fold(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue