delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/08/13/07:27:59

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 67DBRvKe1776342
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 67DBRvKe1776342
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=XvF3GRjt
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4ABF4BA79A8
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1786620475;
bh=cRUFiyaSmQ9ED/Rto7OHfp9pssB9eAm7u64YIrDYzgc=;
h=Date:Subject:To:Cc:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=XvF3GRjtva7TYMpx4UPYt8djVXkTfpQqqLDDFY0K17GbjhhHESkAk5C0Ax5SRGFK+
/4LeOh26A9zC3uPnjvk4HRVdQnJ9aXy++DBg7Bsou7BIEle/PQLJxYB/OOGQiOy7+O
FEfggCW7uNIiImmUer5f75enzhDxGeGJgCu2lqx0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9ADB44BA23F5
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9ADB44BA23F5
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1786620455; cv=pass;
b=azTjKQupi7kuHw4/8KbmtEkgeCMgziNiaOP9S+WPkRTXJrSwz+p3tn1LRkCGwstBg3/Mlvk39f9Dy2bzdYWhl1RIQVIO95++liRy1KZJe9bHOGk/boLXRn+3QtpBtR9fvyyLcr8abEo9s7zns4IpcyDlkRf19zdHrPhpIWYTjdo=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
t=1786620455; c=relaxed/simple;
bh=iKQQe7TPqhR8vj55ZNoDyJpm+GxMzkmhnE/6PH8kFVw=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=Is5mkVdl9+GKDQdznyVC/70NDNIRSa759zkbu8T3Y27s1U6Bd03O/uP4LhgkLRTR9bh6YfxxSIeRhql+FICLQQThQAvYFgP5EJwnnZAov/8a5ZA1Sz/4l1BZAHIazXwtXEJV3aYGnV/yCDvwWjdn3HesLLETbiGiXdST5MqM2hM=
ARC-Authentication-Results: i=2; sourceware.org;
dkim=pass (1024-bit key, secure)
header.d=hamishmb.com header.i=cygwin AT hamishmb DOT com header.a=rsa-sha256
header.s=zmail header.b=aNg/wkek
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ADB44BA23F5
ARC-Seal: i=1; a=rsa-sha256; t=1786620446; cv=none; d=zohomail.eu; s=zohoarc;
b=ir59N+Eocy4y3Fm3rmF8KMywu9+2X1yYBi1hXIzmJ5obMjiWViKtUbNAqkuO8h3qmF4DxrhnNws6GzS6PubxaFxWWOFgxgilE2jt5Xnzw18fVcYFmQr4vcsP7GeJ1KHGtzAklWsucSD0fm3q6jTi8MVGLFiqbO27q44jl6IyPNc=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu;
s=zohoarc; t=1786620446;
h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id;
bh=W81fypRAbw13nL3pPhchs5LEquEYz2Jo24vWJqBKcDQ=;
b=fAtHdu++LduKuBscPsc+YdgxHnxefCadvPpwVmkENN9subh8iSnlYBcYu8CCP2CZpY3fwttXPej1tDbENubyrBFQaHssD+YFnTA7rgDjX8epcjk3nIwh/LhN4FxCw+NBj5LcItjTi4hdMdjinD7QZ0zEAnsrqLVaRyHelhI+2mc=
ARC-Authentication-Results: i=1; mx.zohomail.eu;
dkim=pass header.i=hamishmb.com;
spf=pass smtp.mailfrom=cygwin AT hamishmb DOT com;
dmarc=pass header.from=<cygwin AT hamishmb DOT com>
Message-ID: <3c0f890b-f30f-46e3-9524-d2321397540e@hamishmb.com>
Date: Thu, 13 Aug 2026 12:27:25 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: HiDPI doesn't appear to be handled by Cygwin/X11
To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Cc: cygwin AT cygwin DOT com
References: <15548814-97da-4a8c-aab1-b951bbd57def AT hamishmb DOT com>
<bde700b3-2e94-4cd4-b8b6-a0267221eb87 AT dronecode DOT org DOT uk>
In-Reply-To: <bde700b3-2e94-4cd4-b8b6-a0267221eb87@dronecode.org.uk>
X-ZohoMailClient: External
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Hamish McIntyre-Bhatty via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Hamish McIntyre-Bhatty <cygwin AT hamishmb DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On 17/07/2026 13:46, Jon Turney wrote:
> On 10/07/2026 15:39, Hamish McIntyre-Bhatty via Cygwin wrote:
>> Hi all,
>>
>> Apologies if this has already been reported, but I couldn't find 
>> anything about this exact issue. I've recently found that HiDPI 
>> screens with scaling don't appear to be handled well by Cygwin/X11 - 
>> windows render very small in this configuration. By contrast, if I 
>> use the VcxSrv server with the same Cygwin application it displays at 
>> the size you'd expect.
>>
>> I'd be happy to send screenshots or logs, or anything else I can send 
>> to help figure out why this is happening. I don't know much about X, 
>> other than that it's hard to maintain, so I appreciate this may not 
>> be an easy problem to fix.
>
> Interesting.
>
> The way this is supposed to work is (i) for windows owned by the X 
> server, we turn off all the scaling that Windows might do 
> automatically (so 1 pixel == 1 pixel), and (ii) advise X applications 
> of the real DPI so they (or, usually, the toolkit they use, qt, gtk, 
> etc.) can make appropriate scaling decisions.
>
> (Differences with VcxSrv might be because that's not marked dpiAware 
> and so let's Windows do scaling, or because it has some patches to do 
> more intelligent things...)
>
> It would be nice to know:
>
> * the DPI of your display
> * the dpi reported by xdpyinfo
> * the name of an application you see this problem with

Apologies for the very slow reply.

I don't actually know the DPI of my display, as it's a virtual machine 
in QEMU/KVM. I'm using the Red Hat QXL display adaptor at 2560x1600, 
150% scaling set in Windows.

xdpyinfo reports 144x144 DPI in my Windows VM, which is the same as what 
it says on my host OS (LMDE 7).

I see this problem with the wxPython demo, but also any Cygwin 
application I've tried that uses the X server. I first noticed it with 
my own wxPython-based application, but I sell that so I won't be 
providing links to it here.

Best,

Hamish


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2026   by DJ Delorie     Updated Sep 20 2026