all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* dpyinfo
@ 2020-12-09 21:55 Alan Third
  2020-12-10 13:57 ` dpyinfo Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Third @ 2020-12-09 21:55 UTC (permalink / raw)
  To: Emacs-Devel devel

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 NS port is a mess with respect to DPI. There are at least two
different values hard-coded into various places.)
-- 
Alan Third



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dpyinfo
  2020-12-09 21:55 dpyinfo Alan Third
@ 2020-12-10 13:57 ` Eli Zaretskii
  2020-12-10 19:48   ` dpyinfo Alan Third
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2020-12-10 13:57 UTC (permalink / raw)
  To: Alan Third; +Cc: emacs-devel

> Date: Wed, 9 Dec 2020 21:55:56 +0000
> From: Alan Third <alan@idiocy.org>
> 
> 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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dpyinfo
  2020-12-10 13:57 ` dpyinfo Eli Zaretskii
@ 2020-12-10 19:48   ` Alan Third
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Third @ 2020-12-10 19:48 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On Thu, Dec 10, 2020 at 03:57:47PM +0200, Eli Zaretskii wrote:
> > Date: Wed, 9 Dec 2020 21:55:56 +0000
> > From: Alan Third <alan@idiocy.org>
> > 
> > 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.

Thanks for confirming what I thought.
-- 
Alan Third



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-10 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-09 21:55 dpyinfo Alan Third
2020-12-10 13:57 ` dpyinfo Eli Zaretskii
2020-12-10 19:48   ` dpyinfo Alan Third

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.