commit c7634498d4cd42c8571805122224dc2d0e44a585
Author: Daniel Stone <email address hidden>
Date: Tue May 3 02:59:53 2011 +0100
XKB: Remove duplicate keymap-copying loop
Previously we had:
foreach (device + slaves of device) { XkbCopyDeviceKeymap(i, device);
[...]
}
if (device was last slave of its MD) { XkbCopyDeviceKeymap(master, device);
}
and now:
foreach (device + slaves of device + MD if device was last slave) { XkbCopyDeviceKeymap(i, device);
[...]
}
As an extra bonus, when changing the keymap on a slave device, we now
ensure the LED info on the master is kept in sync.
Signed-off-by: Daniel Stone <email address hidden>
Reviewed-by: Peter Hutterer <email address hidden>
so, say you have another keyboard attached (laptop docked, etc), numlock status is synced with both
would regress commit
commit c7634498d4cd42c 8571805122224dc 2d0e44a585
Author: Daniel Stone <email address hidden>
Date: Tue May 3 02:59:53 2011 +0100
XKB: Remove duplicate keymap-copying loop
Previously we had:
XkbCopyDev iceKeymap( i, device);
XkbCopyDev iceKeymap( master, device);
XkbCopyDev iceKeymap( i, device);
foreach (device + slaves of device) {
[...]
}
if (device was last slave of its MD) {
}
and now:
foreach (device + slaves of device + MD if device was last slave) {
[...]
}
As an extra bonus, when changing the keymap on a slave device, we now
ensure the LED info on the master is kept in sync.
Signed-off-by: Daniel Stone <email address hidden>
Reviewed-by: Peter Hutterer <email address hidden>
so, say you have another keyboard attached (laptop docked, etc), numlock status is synced with both