mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add tablet option map-to-focused-output
This commit is contained in:
committed by
Ivan Molodetskikh
parent
f4ebbc8017
commit
9e5716a9db
+6
-2
@@ -3582,8 +3582,12 @@ impl Niri {
|
||||
|
||||
pub fn output_for_tablet(&self) -> Option<&Output> {
|
||||
let config = self.config.borrow();
|
||||
let map_to_output = config.input.tablet.map_to_output.as_ref();
|
||||
map_to_output.and_then(|name| self.output_by_name_match(name))
|
||||
if config.input.tablet.map_to_focused_output {
|
||||
self.layout.active_output()
|
||||
} else {
|
||||
let map_to_output = config.input.tablet.map_to_output.as_ref();
|
||||
map_to_output.and_then(|name| self.output_by_name_match(name))
|
||||
}
|
||||
}
|
||||
|
||||
pub fn output_for_touch(&self) -> Option<&Output> {
|
||||
|
||||
Reference in New Issue
Block a user