public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: Marco Atzeri <marco.atzeri@gmail.com>,
	The Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: German Keyboard for X
Date: Tue, 5 May 2020 17:20:19 +0100	[thread overview]
Message-ID: <9dba6197-fc55-fa5a-de7b-4849e1f07324@dronecode.org.uk> (raw)
In-Reply-To: <4b28ec91-1974-1bd7-ed54-da95f039b767@gmail.com>

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

  reply	other threads:[~2020-05-05 16:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-05 16:01 Marco Atzeri
2020-05-05 16:20 ` Jon Turney [this message]
2020-05-05 21:00   ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9dba6197-fc55-fa5a-de7b-4849e1f07324@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin@cygwin.com \
    --cc=marco.atzeri@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).