mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 01:34:04 +00:00
Don't register middle mouse button emulation handlers for keyboards.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -327,6 +327,9 @@ EvdevMBEmuPreInit(InputInfoPtr pInfo)
|
||||
void
|
||||
EvdevMBEmuOn(InputInfoPtr pInfo)
|
||||
{
|
||||
if (!pInfo->dev->button) /* don't init for keyboards */
|
||||
return;
|
||||
|
||||
RegisterBlockAndWakeupHandlers (EvdevMBEmuBlockHandler,
|
||||
EvdevMBEmuWakeupHandler,
|
||||
(pointer)pInfo);
|
||||
@@ -335,6 +338,9 @@ EvdevMBEmuOn(InputInfoPtr pInfo)
|
||||
void
|
||||
EvdevMBEmuFinalize(InputInfoPtr pInfo)
|
||||
{
|
||||
if (!pInfo->dev->button) /* don't cleanup for keyboards */
|
||||
return;
|
||||
|
||||
RemoveBlockAndWakeupHandlers (EvdevMBEmuBlockHandler,
|
||||
EvdevMBEmuWakeupHandler,
|
||||
(pointer)pInfo);
|
||||
|
||||
Reference in New Issue
Block a user