Query layout for given device
The "-query" commandline option does not seem to respect the "-device" option
My usecase is, that I have a keyboard in my laptop but sometimes I attach a USB keyboard with a different layout e.g. german + english or german + NEO2 ;-)
Obviously I want BOTH keyboards to work as expected so I have a small bash script which essentially does something like
setxkbmap -device 13 "at(nodeadkeys)"
setxkbmap -device 24 "at(neo)"
This really works perfectly but I can't query this.
setxkbmap -device 13 -query
setxkbmap -device 24 -query
Those return the same although they aren't.
I saw in the code that "-query" returns the layout of the "core-keyboard" rather than the given device ( https://gitlab.freedesktop.org/xorg/app/setxkbmap/-/blob/master/setxkbmap.c#L154 ) and does not fetch the specific settings https://gitlab.freedesktop.org/xorg/app/setxkbmap/-/blob/master/setxkbmap.c#L1042 am I correct?