With these settings for XKB:
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "pl,us"
Option "XkbVariant" ""
Option "XkbOptions" "compose:caps"
The "compose:caps" option does not work properly: The Caps Lock key
both switches caps lock and serves as compose instead of only compose
The same happens with any secondary layout that includes 'us', such as
The attached patch fixes the problem, and does not break caps lock in
a pure us layout (no variant, no options).
Created attachment 19974 [details] [review]
Remove CAPS setting from US; rely on default
Well spotted! Thanks!