On 05/05/2020 17:01, Marco Atzeri via Cygwin wrote:
I see a glitch on the Keyboard for X (not on Mintty),
when I am running this Keyboard Layout

(--) Windows keyboard layout: "A0000407" (a0000407) "Deutsch - no dead keys", type 34668816
(--) Found matching XKB configuration "German (Germany)"
(--) Model = "pc105" Layout = "de" Variant = "none" Options = "none"
(--) Windows keyboard layout device identifier indicates Macintosh, setting Model = "macintosh"Rules = "base" Model = "macintosh" Layout = "de" Variant = "none" Options = "none"

the ALTGR+8 and ALTGR+9 produces {} (same as ALTGR+7 and ALTGR+0)
  instead of the expected []

The Windows Layout is coming from:
https://zauner.nllk.net/post/0014-windows-no-dead-keys/


The problem is not present with the default Windows German Layout

(--) Windows keyboard layout: "00000407" (00000407) "German", type 7
(--) Found matching XKB configuration "German (Germany)"
(--) Model = "pc105" Layout = "de" Variant = "none" Options = "none"
Rules = "base" Model = "pc105" Layout = "de" Variant = "none" Options = "none"

What ever this Model = "macintosh" is, I doubt having
ALTGR+8 same as ALTGR+7 makes any sense

There's some code in the X server which tries to identify if you are using Windows under bootcamp on a mac, with the appropriate Windows keyboard layout, and turns on model=mac there.

At the moment, this gets turned on if the top 2 bits of the layout ID are set, which really just means "non-Microsoft provided layout", which is perhaps too aggressive.

It's probably a bug in xkeyboard-config that combination of options produces mapping that's messed up like that.

Suggestion?

i) Explicitly set the X server keyboard layout you want using setxkbmap or the equivalent options.

ii) Provide the information per [1] and I can add it to the set of layout autodetected by the server. (Not totally sure that's a the best idea, as there's nothing to prevent someone else publishing a different variant german layout with the same ID)

[1] https://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-submit-layout
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to