Skip to content

Commit

Permalink
Merge pull request #272 from andy-zetier/fix_keycodes_per_modifier_is…
Browse files Browse the repository at this point in the history
…_not_pub

Expose "keycodes_per_modifier" property getter
  • Loading branch information
rtbo authored Nov 9, 2024
2 parents f88b1a0 + ffe4adf commit 8a61bb1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/cg/struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1683,8 +1683,13 @@ impl CodeGen {
// not simply the length of a slice, and they must be exposed so that the
// user can treat the slice as an image. The format field is important for
// GetPropertyReply where the value getter would panic if formats mismatch.
// The keycodes_per_modifier field is needed for iterating the list of
// keycodes returned in GetModifierMappingReply.
let visibility = if *is_fieldref
&& !(name == "width" || name == "height" || name == "format")
&& !(name == "width"
|| name == "height"
|| name == "format"
|| name == "keycodes_per_modifier")
{
""
} else {
Expand Down

0 comments on commit 8a61bb1

Please sign in to comment.