diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-11 10:36:00 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-06-11 11:23:38 +0930 |
commit | 9591dc1f6cc89208805b120eabd055e8dabd3e40 (patch) | |
tree | fbf79ee359105d044957355cc45669980bb89eab /src/emuMB.c | |
parent | 08ba40b2532bd61b60c9cf994b21300f596f7ebd (diff) |
Remove wakeup handlers when device is closed.
Less SIGABRTs are less exciting, but sometimes boredom is what we want.
Diffstat (limited to 'src/emuMB.c')
-rw-r--r-- | src/emuMB.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/emuMB.c b/src/emuMB.c index 2855632..b2974b7 100644 --- a/src/emuMB.c +++ b/src/emuMB.c @@ -299,6 +299,15 @@ EvdevMBEmuPreInit(InputInfoPtr pInfo) } +void +EvdevMBEmuFinalize(InputInfoPtr pInfo) +{ + RemoveBlockAndWakeupHandlers (EvdevMBEmuBlockHandler, + EvdevMBEmuWakeupHandler, + (pointer)pInfo); + +} + /* Enable/disable middle mouse button emulation. */ void EvdevMBEmuEnable(InputInfoPtr pInfo, BOOL enable) |