config: allow setting per-device scroll wheel speed
This commit is contained in:
parent
50c87d6da7
commit
c0afc5cf2a
12 changed files with 78 additions and 16 deletions
|
|
@ -9,7 +9,7 @@ use {
|
|||
},
|
||||
rect::Rect,
|
||||
render::{Renderer, Texture},
|
||||
state::State,
|
||||
state::{DeviceHandlerData, State},
|
||||
text,
|
||||
tree::{
|
||||
walker::NodeVisitor, ContainingNode, Direction, FindTreeResult, FoundNode, Node,
|
||||
|
|
@ -1145,7 +1145,12 @@ impl Node for ContainerNode {
|
|||
}
|
||||
}
|
||||
|
||||
fn node_on_axis_event(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, event: &PendingScroll) {
|
||||
fn node_on_axis_event(
|
||||
self: Rc<Self>,
|
||||
_dev: &DeviceHandlerData,
|
||||
seat: &Rc<WlSeatGlobal>,
|
||||
event: &PendingScroll,
|
||||
) {
|
||||
let mut seat_datas = self.seats.borrow_mut();
|
||||
let seat_data = match seat_datas.get_mut(&seat.id()) {
|
||||
Some(s) => s,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue