mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-21 07:50:40 +02:00
tools: fix the demo clients' frame events for kbd/abs
Unsurprisingly segfaults on EIS implementations that don't provide a pointer. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1cfa62859f
commit
9013702534
1 changed files with 3 additions and 3 deletions
|
|
@ -376,9 +376,9 @@ int main(int argc, char **argv)
|
|||
static int key = 0;
|
||||
colorprint("sending key event\n");
|
||||
ei_device_keyboard_key(kbd, KEY_Q + key, true); /* KEY_Q */
|
||||
ei_device_frame(ptr);
|
||||
ei_device_frame(kbd);
|
||||
ei_device_keyboard_key(kbd, KEY_Q + key, false); /* KEY_Q */
|
||||
ei_device_frame(ptr);
|
||||
ei_device_frame(kbd);
|
||||
key = (key + 1) % 6;
|
||||
}
|
||||
|
||||
|
|
@ -386,7 +386,7 @@ int main(int argc, char **argv)
|
|||
static int x, y;
|
||||
colorprint("sending abs event\n");
|
||||
ei_device_pointer_motion_absolute(abs, 150 + ++x, 150 - ++y);
|
||||
ei_device_frame(ptr);
|
||||
ei_device_frame(abs);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue