void-packages/srcpkgs/mouseemu/patches/010-initialize_device.patch
q66 b004d06c23 New package: mouseemu-0.15
This is a daemon which allows you to emulate middle and right
click as well as a mouse wheel. It was originally written for
Apple PowerPC laptops with a single button, but can be used on
any hardware.
2020-02-09 03:10:27 +01:00

13 lines
359 B
Diff

Author: <agx@sigxcpu.org>
Description: Intialize all fields in uinput_user_dev, otherwise strange things
like dead keyboard, etc. might happen
--- a/mouseemu.c
+++ b/mouseemu.c
@@ -418,6 +418,7 @@
struct uinput_user_dev device;
int i;
+ memset(&device, 0, sizeof(struct uinput_user_dev));
/*setup keyboard device */
if(ui_keyb_fd > 0) {