delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/11/09/16:05:32

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 6A9L5UTS1448666
Authentication-Results: delorie.com; dmarc=pass (p=quarantine 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 6A9L5UTS1448666
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=wvnbs1lh
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C97D4BBC0E1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1794258312;
bh=cA0FZftSFJTUFf/VGM7h95fQVx65q8VkKMPILzCKUlo=;
h=Date:Subject:References:Cc:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=wvnbs1lhipif1JnbUx1PzVRXxTu0EB2zBDUoU9hHODS65E3fLcDZkbwM9TuDBISfR
sbV8xrYQosAEt34Jtxk2wRecNbSQOojoyYN4+AnHOGLMbarR0Zra6oM0tHGwfixKDR
P4Gg5t8ZOLGXGHyCshJU5laDuJ65qSRFRxmDwsIo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 274764B99F6A
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 274764B99F6A
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794258263; cv=none;
b=NttOx5u5ZMRXDDX6ayzH9a4P+ARwHGqkFPqPZcqjLJLIkc1YXqcSy+4uyzrml+mcntC8kYilFNjsppGjlLn0hEfVnYXfNv6TFXnyW2U7EmohUJ303MH5wBpj9US8Rvgna+nEZEq41r4ApB07xlMMhCiXo/RGm5+cODk39l/skaU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1794258263; c=relaxed/simple;
bh=6RmcRFm7m9ApW7k91cBbIZPAxFWupBvzDwRTU9Lvr1g=;
h=Message-ID:Date:MIME-Version:Subject:From;
b=ajF23Vrc+0Fwf1yUSS878Neu4Mv99m1orwledD8sZ3ljU7tuiGlVsuizXp/iRcynkr8E/Fm7jqh8SZPHko6zsCYc/QLJzZYrNGTsIB6YbWQ+aHCpelnNXeogUndTZx70v6K3sR/yGi5a3B0YFx57lld7IAHWb/sTcp7J8yf/3Cs=
ARC-Authentication-Results: i=1; sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 274764B99F6A
X-SNCR-Rigid: 6A71613814C78AAC
X-Originating-IP: [80.176.81.8]
X-OWM-Source-IP: 80.176.81.8
X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk
X-VadeSecure-score: verdict=clean score=30/300, class=clean
X-RazorGate-Vade: dmFkZTEX/VX6gqnK0K287ESQoOWQOttTtb3rkgui/VktRA032/XgT6rr+Gxn/eWiKwKYDZL/KY+xb/vjT/mXG1sfBOG7A4zxcmXTxQWyzVHw+KqwN74cI5mty0iKXNBKnJO1X4Art4gHaF6Fp+fdH57EKbH8Xut9Tdpv8kYIFzNTUmxy1fQxpQVkoENt9cpuUHdaNRPVDYk60G4FuMhhDkxkDD4Zo8tbWtcfXjQUVrhBK1INFOfDl7fl+siACC/2BEMB4Ji/n8rni28knFXicMR1LailQxWXaYsoMLJteQldoCF2wd0srZ4ct4fSui/Vk0CcKgMiBG6vLHVUo+4yWAlxDpa/J7uyMSlsIkw6/0ot1vWwduK0K/aYnZ3Vwd0PD8rqP6eSQ5xKvAe5VTf7Xy8Z/05ifvAyUqD8hEFEowvXunFuL8eSccLoChQuPFTPxT7xewJnDQ3Ww4w+USLJSNepsV6m5cTw23wASDCw6z3cs9rVSALgspTMIY5EMUH0n5JgNc70SsoWCny/BPXwnsNQMwTabqHp8kI28q6jHAvcTAgsmy7jOpEbiAwl1gXWf5Q9oCElrHp1FWqMO8RKGnLUmeMMkTLXqiaI4I8ReclUZvv3zRNQXMpNjrx1s6/r3rSEW10k/RcZpPLc9qU5NLEdxbtrnR2aMbNjiKiRCfIqivTSfw
X-RazorGate-Vade-Verdict: clean 30
X-RazorGate-Vade-Classification: clean
Message-ID: <e175afb7-ec5e-4fbe-ac87-2e6f42061fc0@dronecode.org.uk>
Date: Mon, 9 Nov 2026 21:04:21 +0000
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: HiDPI doesn't appear to be handled by Cygwin/X11
References: <15548814-97da-4a8c-aab1-b951bbd57def AT hamishmb DOT com>
<bde700b3-2e94-4cd4-b8b6-a0267221eb87 AT dronecode DOT org DOT uk>
<3c0f890b-f30f-46e3-9524-d2321397540e AT hamishmb DOT com>
<b8106b4c-fce6-434f-85be-dd8f91171095 AT hamishmb DOT com>
Cc: cygwin AT cygwin DOT com, Hamish McIntyre-Bhatty <cygwin AT hamishmb DOT com>
In-Reply-To: <b8106b4c-fce6-434f-85be-dd8f91171095@hamishmb.com>
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: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
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 09/11/2026 14:22, Hamish McIntyre-Bhatty via Cygwin wrote:
> On 13/08/2026 12:27, Hamish McIntyre-Bhatty via Cygwin wrote:
>> 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
> 
> Hi,
> 
> Any update on what might be causing this? I'd be very happy to try some 
> stuff to help figure it out, but I'd need some pointers as I'm not very 
> familiar with how Xwin works (or X in general really, beyond a little 
> messing with Xorg.conf back in the day).
> 
> I'd like to use the Xwin server instead of Vcxsrv for my app, as I've 
> found that Vcxsrv seems to have graphical corruption issues 
> intermittently, which obviously isn't great when it comes to 
> distributing an app with it. I'll work to get those resolved too of 
> course, but it would be better to use Xwin.

Sorry, I'd lost track of this issue.

I don't recall other reports of similar problems since we started 
marking the XWin server as DpiAware, so I'm thinking that perhaps this 
problem is particular to the VM setup you are using.

Can you show me the output of "xrandr --verbose" as well, please?

I wonder if you can qualify what you mean by "very small"? (You can send 
me a screenshot, if you like).


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