Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 218667 Details for
Bug 291244
app-misc/g15daemon-1.9.5.3-r2 stops working after a system update
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch fixing the syn bug in the old 1.2.7 version of g15daemon
g15daemon_ev_syn-1.2.7.patch (text/plain), 1.31 KB, created by
PhobosK
on 2010-02-06 13:40:54 UTC
(
hide
)
Description:
A patch fixing the syn bug in the old 1.2.7 version of g15daemon
Filename:
MIME Type:
Creator:
PhobosK
Created:
2010-02-06 13:40:54 UTC
Size:
1.31 KB
patch
obsolete
>--- g15daemon/g15_uinput.c.orig 2006-11-14 09:34:57.000000000 +0200 >+++ g15daemon/g15_uinput.c 2010-02-06 15:06:11.000000000 +0200 >@@ -30,10 +30,10 @@ > #include <string.h> > #include <sys/types.h> > #include <sys/stat.h> >+#include <sys/time.h> > #include <fcntl.h> > #include <libdaemon/daemon.h> > #include <config.h> >-#include <fcntl.h> > #include <unistd.h> > > #ifdef HAVE_CONFIG_H >@@ -101,11 +101,20 @@ > struct input_event event; > memset(&event, 0, sizeof(event)); > >+ gettimeofday(&event.time, NULL); > event.type = EV_KEY; > event.code = code; > event.value = G15KEY_DOWN; > > write (uinp_fd, &event, sizeof(event)); >+ >+ event.type = EV_SYN; >+ event.code = SYN_REPORT; >+ event.value = 0; >+ >+ write(uinp_fd, &event, sizeof(event)); >+ >+ daemon_log(LOG_DEBUG,"UINPUT device: G key pressed."); > } > > void g15_uinput_keyup(unsigned char code) >@@ -113,11 +122,20 @@ > struct input_event event; > memset(&event, 0, sizeof(event)); > >+ gettimeofday(&event.time, NULL); > event.type = EV_KEY; > event.code = code; > event.value = G15KEY_UP; > > write (uinp_fd, &event, sizeof(event)); >+ >+ event.type = EV_SYN; >+ event.code = SYN_REPORT; >+ event.value = 0; >+ >+ write(uinp_fd, &event, sizeof(event)); >+ >+ daemon_log(LOG_DEBUG,"UINPUT device: G key released."); > } > > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 291244
:
218094
|
218621
|
218623
|
218665
| 218667