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 <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to