input: move capability conversion to libinput boundary
This commit is contained in:
parent
a20deb0628
commit
46d39becd4
5 changed files with 50 additions and 50 deletions
|
|
@ -543,7 +543,7 @@ impl InputDevice for MetalInputDevice {
|
|||
}
|
||||
|
||||
fn has_capability(&self, cap: InputDeviceCapability) -> bool {
|
||||
let li = cap.to_libinput();
|
||||
let li = crate::libinput::device_capability(cap);
|
||||
match self.inputdev.get() {
|
||||
Some(dev) => dev.device().has_cap(li),
|
||||
_ => false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue