mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-31 08:50:09 +01:00
remove extra parameter in path_disable_device()
Signed-off-by: weizhixiang <1138871845@qq.com>
This commit is contained in:
parent
bb84fcc738
commit
7f2989e2aa
1 changed files with 3 additions and 4 deletions
|
|
@ -49,8 +49,7 @@ static const char default_seat[] = "seat0";
|
|||
static const char default_seat_name[] = "default";
|
||||
|
||||
static void
|
||||
path_disable_device(struct libinput *libinput,
|
||||
struct evdev_device *device)
|
||||
path_disable_device(struct evdev_device *device)
|
||||
{
|
||||
struct libinput_seat *seat = device->base.seat;
|
||||
struct evdev_device *dev, *next;
|
||||
|
|
@ -76,7 +75,7 @@ path_input_disable(struct libinput *libinput)
|
|||
libinput_seat_ref(&seat->base);
|
||||
list_for_each_safe(device, next,
|
||||
&seat->base.devices_list, base.link)
|
||||
path_disable_device(libinput, device);
|
||||
path_disable_device(device);
|
||||
libinput_seat_unref(&seat->base);
|
||||
}
|
||||
}
|
||||
|
|
@ -424,6 +423,6 @@ libinput_path_remove_device(struct libinput_device *device)
|
|||
|
||||
seat = device->seat;
|
||||
libinput_seat_ref(seat);
|
||||
path_disable_device(libinput, evdev);
|
||||
path_disable_device(evdev);
|
||||
libinput_seat_unref(seat);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue