mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 09:20:29 +01:00
evdev: rename a leftover weston variable
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
0e8be12383
commit
9d7bd8e623
1 changed files with 2 additions and 2 deletions
|
|
@ -249,7 +249,7 @@ void
|
|||
evdev_device_led_update(struct evdev_device *device, enum libinput_led leds)
|
||||
{
|
||||
static const struct {
|
||||
enum libinput_led weston;
|
||||
enum libinput_led libinput;
|
||||
int evdev;
|
||||
} map[] = {
|
||||
{ LIBINPUT_LED_NUM_LOCK, LED_NUML },
|
||||
|
|
@ -266,7 +266,7 @@ evdev_device_led_update(struct evdev_device *device, enum libinput_led leds)
|
|||
for (i = 0; i < ARRAY_LENGTH(map); i++) {
|
||||
ev[i].type = EV_LED;
|
||||
ev[i].code = map[i].evdev;
|
||||
ev[i].value = !!(leds & map[i].weston);
|
||||
ev[i].value = !!(leds & map[i].libinput);
|
||||
}
|
||||
ev[i].type = EV_SYN;
|
||||
ev[i].code = SYN_REPORT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue