evdev: Silence warning

dev
Kristian Høgsberg 13 years ago
parent a03a93c6ea
commit 865f9b87c9
  1. 5
      compositor/evdev.c

@ -224,7 +224,7 @@ evdev_input_device_data(int fd, uint32_t mask, void *data)
struct input_event ev[8], *e, *end; struct input_event ev[8], *e, *end;
int len; int len;
struct evdev_motion_accumulator accumulator; struct evdev_motion_accumulator accumulator;
uint32_t time; uint32_t time = 0;
ec = device->master->base.compositor; ec = device->master->base.compositor;
if (!ec->focus) if (!ec->focus)
@ -267,8 +267,7 @@ evdev_input_device_data(int fd, uint32_t mask, void *data)
} }
} }
evdev_flush_motion(&device->master->base.input_device, time, evdev_flush_motion(&device->master->base.input_device, time, &accumulator);
&accumulator);
return 1; return 1;
} }

Loading…
Cancel
Save