X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:cc:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=M2P6g2lJF80LC6cI
	Lv5rrWAfYrN6PrZbP5VgiJwynIevEwQruyg8sUZtK85NyCos2H5TKSrT/z20DC23
	Xdlj9X8tQnw1OoCGR1Jw5SBYo5VLIEVw+7BWy5sklVmVipKupxXX6JAMKP3q1gcS
	yBvrk/fOvt6qaYOpE9LkGb8ZSus=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:cc:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=euRQEDAbjobqcSLx+Kdoh/
	js0is=; b=ocUPAIPGH59cv1w3RB2tIlc91+0MRzhqA4hnmB0sRm+QVDVtkzbSPI
	OXm1n5uvHz99rf9TbUNCnTMvrNky8PVb5ot5h5r8T6rKj2V1oS/Rz3SXKFwuS+QY
	GSwa9D3gcGGMSg0WXMraT7Ud4u/pU79xr0ATO7/auMb6E9GBuIRC4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: out4-smtp.messagingengine.com
Message-ID: <55392F3B.60102@dronecode.org.uk>
Date: Thu, 23 Apr 2015 18:43:23 +0100
From: Jon TURNEY <jon.turney@dronecode.org.uk>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
MIME-Version: 1.0
To: cygwin@cygwin.com
CC: kaimikael.jaaaro@sh.se
Subject: Re: Parallels keyboard mapping not auto-detected in Cygwin/X
References: <4269327E-6161-40D6-9990-29A35760DB64@sh.se>
In-Reply-To: <4269327E-6161-40D6-9990-29A35760DB64@sh.se>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

On 21/04/2015 10:10, Kai-Mikael Jää-Aro wrote:
> I am running Cygwin/X 1.17 in Windows 7 in Parallels 10.2 in OS X 10.10, and do not automatically get the right keyboard mapping.  I get this in /var/log/xwin/XWin.0.log:
>
> [  1448.048] (--) Windows keyboard layout: "A000041D" (a000041d) "Swedish (Apple) - Parallels", type 34668816
> [  1448.048] (EE) Keyboardlayout "Swedish (Apple) - Parallels" (A000041D) is unknown, using X server default layout
>
> The layout should be standard Swedish keyboard.

Thanks for reporting this.

I don't know if this layout identifier is only used by Parallels, or if 
you could also get it reported when using the BootCamp drivers with Windows?

I've added some code which should hopefully handle Apple keyboards for 
all known layouts.

I'm not 100% sure I've got this right, and I don't have any real way to 
test this, so I've built a snapshot [1], and I'd be obliged if you could 
test this.

I'm also not sure if using the standard pc105 layout is correct. 
xkeyboard-config has specialized macintosh and macbook79 layouts, which 
seem to differ in the location of the 3rd-level shift key (what would be 
AltGr on a PC keyboard), so I'm not sure which of those to use.  Can you 
verify that is also working as expected?

[1]
ftp://cygwin.com/pub/cygwinx/x86/XWin.20150423-git-0429977adb1db1b5.exe.bz2
ftp://cygwin.com/pub/cygwinx/x86_64/XWin.20150423-git-0429977adb1db1b5.exe.bz2

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

