command/map: add note about upstream xkbcommon fix

This commit is contained in:
Isaac Freund 2024-03-24 11:46:07 +01:00
parent ed99d7bc14
commit 12de175e11
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -266,6 +266,10 @@ fn parseKeysym(name: [:0]const u8, out: *?[]const u8) !xkb.Keysym {
// different keysym values for example. Switching to a case-sensitive match // different keysym values for example. Switching to a case-sensitive match
// would be too much of a breaking change at this point so fix this by // would be too much of a breaking change at this point so fix this by
// special-casing this exception. // special-casing this exception.
//
// This has been fixed upstream in libxkbcommon 1.7.0
// https://github.com/xkbcommon/libxkbcommon/pull/465
// TODO remove the workaround once libxkbcommon 1.7.0 is widely distributed.
if (@intFromEnum(keysym) == xkb.Keysym.XF86Screensaver) { if (@intFromEnum(keysym) == xkb.Keysym.XF86Screensaver) {
if (mem.eql(u8, name, "XF86Screensaver")) { if (mem.eql(u8, name, "XF86Screensaver")) {
return keysym; return keysym;