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:subject:references:cc:from:to:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=NO/vXkce8zq3NJP6
	F/7oqR2Xyl0eo8EvCUub9wepXiMyEeU1VWO2VPxFTyW6XIg9LwN+bIVYEqgesddw
	by04Zqxmc7Y0nPPW4+9wVw5WEZyJ6YGsybd4RvjALx62Aw6A7iycRF9yPFy9ra/D
	7qRKMeMi+2jtmQ0zqnlOI+5jV+s=
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:subject:references:cc:from:to:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=fP6Ok2hSkjqO+2AHxe/1Mu
	vw654=; b=vYALq1U5DcudC6j6XptgTRXMY9hJEOa3+3ooxERgZL0TfrdFLbgyj2
	mzdT6ftOE47y1XRkQ9P+OG/3sMmOqtZJ86D/lHmphxRYw9cMs7lxPhH2tW4j6siT
	rhp1K0dk1Qcy34/jOgr2yyX9p5krZhh1uXe6YY4cxwqST0FEdbF4Y=
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=0.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=cygwin-announce, cygwinannounce, sk:jeff_sc, jeff_schenckattnet
X-HELO: out1-smtp.messagingengine.com
X-ME-Sender: <xms:hEWPWD6DT4CV1GFJFozMPsaXIxOaxf71sUjyBCcJ8izTImyiiHQ1Ng>
Subject: Re: X colormap problem when viewed via Microsoft Remote Desktop
References: <20170129031635.GA2650@anarchy.local>
Cc: Jeff Schenck <schenck@alum.mit.edu>
From: Jon Turney <jon.turney@dronecode.org.uk>
To: cygwin@cygwin.com
Message-ID: <e04e18e9-aae9-8628-d7e3-051654a59f43@dronecode.org.uk>
Date: Mon, 30 Jan 2017 13:54:07 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <20170129031635.GA2650@anarchy.local>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

On 29/01/2017 03:16, jeff_schenck@att.net wrote:
> After a fairly recent update of cygwin, I now find that all my X
> windows (xterm, emacs, etc.) have color and font problems.  Non-x
> terminal windows are fine.  Windows 7 is running as a VM on an esxi
> hypervisor, so I view it remotely with Microsoft Remote Desktop.  It
> worked well on a previous cygwin release, but I don't have the exact
> date when it changed.  Also, I don't think the problem is with MRD
> because I see it with VNC also.

Thanks for reporting this problem.

"color and font problems" is a bit vague.  Can you upload a screenshot 
somewhere which illustrates this?

This is unlikely to be a problem with actual X colourmaps unless you are 
using antique X clients which use 8 bit visuals.

However, RDP can step down the display colour depth, whereas the colour 
depth of an X server root window cannot change, which can cause 
dithering to occur.

Additionally, sometimes DirectDraw rendering to RDP doesn't seem to work 
properly, for unknown reasons. (This is discussed briefly in [1])

Since this has started 'recently', I guess it might be related to the 
'-compositewm' option being turned on by default [2].

So, you might try starting the X server with a limited colour depth 
(e.g. '-depth 16'), or try the '-engine 1' or '-nocompositewm' options [3].

[1] https://x.cygwin.com/docs/ug/using-terminal-server.html
[2] https://cygwin.com/ml/cygwin-announce/2016-06/msg00045.html
[3] https://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-command-line-args

-- 
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

