From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: dpyinfo Date: Thu, 10 Dec 2020 15:57:47 +0200 Message-ID: <83sg8d4vc4.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3417"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 10 15:01:40 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1knMVn-0000nd-Tb for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Dec 2020 15:01:39 +0100 Original-Received: from localhost ([::1]:38920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knMVm-00083Q-RN for ged-emacs-devel@m.gmane-mx.org; Thu, 10 Dec 2020 09:01:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knMSR-0005VR-AZ for emacs-devel@gnu.org; Thu, 10 Dec 2020 08:58:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40953) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knMSP-0005sX-HF; Thu, 10 Dec 2020 08:58:09 -0500 Original-Received: from [176.228.60.248] (port=1334 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1knMSN-0000q3-0g; Thu, 10 Dec 2020 08:58:07 -0500 In-Reply-To: (message from Alan Third on Wed, 9 Dec 2020 21:55:56 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:260651 Archived-At: > Date: Wed, 9 Dec 2020 21:55:56 +0000 > From: Alan Third > > I've been looking at using the screen's actual DPI setting when > generating SVG files for bug 45124 and I was wondering if the dpyinfo > struct is updated as the frame moves from screen to screen? My guess > is that it's not, and it's only set when the frame is created? The resolution is set in init_xterm, so I'd expect it to be run whenever a new display is open, not when a frame is created. What happens when one moves from one screen to another, I don't know, but if they are on the same X display, the resolution indeed doesn't change, AFAICT.