[PATCH 2/3] Xi: DeepCopyDeviceClasses to MASTER_KEYBOARD

Daniel Martin consume.noise at gmail.com
Sun Mar 23 07:31:56 PDT 2014


Copying the keyboard classes to the MASTER_POINTER doesn't cause the
desired effect. Instead, copy them to the MASTER_KEYBOARD even if the
DeviceChangedEvent occured at the MASTER_POINTER.

Signed-off-by: Daniel Martin <consume.noise at gmail.com>
---
 Xi/exevents.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Xi/exevents.c b/Xi/exevents.c
index 9c207eb..6f2e68d 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -665,7 +665,7 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to,
     DeepCopyFeedbackClasses(from, to);
 
     if ((dce->flags & DEVCHANGE_KEYBOARD_EVENT))
-        DeepCopyKeyboardClasses(from, to);
+        DeepCopyKeyboardClasses(from, GetMaster(from, MASTER_KEYBOARD));
     if ((dce->flags & DEVCHANGE_POINTER_EVENT))
         DeepCopyPointerClasses(from, to);
 }
-- 
1.9.1



More information about the xorg-devel mailing list