unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: Feng Shu <tumashu@163.com>, emacs-devel@gnu.org
Subject: Re: Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs"
Date: Wed, 10 Jan 2018 14:45:24 +0100	[thread overview]
Message-ID: <87vag9j097.fsf@gmail.com> (raw)
In-Reply-To: <5A55E8C3.9090303@gmx.at> (martin rudalics's message of "Wed, 10 Jan 2018 11:19:47 +0100")

martin rudalics <rudalics@gmx.at> writes:

>> That returns the position in pixels,
>> unscaled, so I think it's correct.
>
> Thus we can be sure that the caller of our position functions can
> always contine to think in terms of unscaled positions so scaling is
> "transparent"?

I think so. I think that should be our goal anyway.

> I think that after you fixed all this we should somewhere add a
> paragraph to the Elisp manual explaining whether, why and how this
> works.

That depends on what you mean by 'this'. If you mean 'Emacs always
works in pixels regardless of scaling', then 'Coordinates and Windows'
in windows.texi would be a good place. I'm just not sure we can
guarantee that yet (I know that e.g. frameset-restore misbehaves in
the presence of scaling, and I haven't tracked down why yet)

Robert



  reply	other threads:[~2018-01-10 13:45 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-08 11:53 Child-frame can not move to proper position when run "env GDK_SCALE=2 emacs" Feng Shu
2018-01-08 18:17 ` martin rudalics
2018-01-08 23:03   ` Feng Shu
2018-01-09  9:43     ` martin rudalics
2018-01-09 10:56       ` Robert Pluim
2018-01-10 10:19         ` martin rudalics
2018-01-10 13:45           ` Robert Pluim [this message]
2018-01-11 10:54             ` martin rudalics
2018-01-09 10:06     ` Robert Pluim
2018-01-10  0:52       ` Dmitry Gutov
2018-01-10 13:19         ` Stefan Monnier
2018-01-10 13:48           ` Robert Pluim
2018-01-10 14:27             ` Dmitry Gutov
2018-01-10 15:08               ` Robert Pluim
2018-01-10 15:36                 ` Dmitry Gutov
2018-01-10 15:58                   ` Robert Pluim
2018-01-10 16:24                     ` Dmitry Gutov
2018-01-10 10:19       ` martin rudalics
2018-01-10 13:35         ` Robert Pluim
2018-01-11 10:54           ` martin rudalics
2018-01-11  0:16         ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vag9j097.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    --cc=tumashu@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).