unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: martin rudalics <rudalics@gmx.at>, Eli Zaretskii <eliz@gnu.org>,
	emacs-devel@gnu.org
Subject: RE: Display-relative coordinates
Date: Thu, 28 Jul 2016 13:20:57 -0700 (PDT)	[thread overview]
Message-ID: <3c6ba762-f120-4189-833a-60ebcbcc1e65@default> (raw)
In-Reply-To: <579A580B.9010507@gmx.at>

>  > What are the problems you see with the above (except that 'tp' is a
>  > void variable)?  It looks OK to me, modulo the kludges in
>  > top-fudge-pixels (why not use frame-geometry, which exists for that
>  > purpose?).
> 
> FWIW ‘window-inside-absolute-pixel-edges’ didn't work on Windows before
> Emacs 25.  On Emacs 25 ‘window-absolute-pixel-position’ is all that's
> needed.

I see.  See my reply to Eli too, however.  In the example I gave using
an Emacs 25 build (not very recent) it returned good results, but
`posn-at-point' seemed to be off.

Anyway, I'm glad to see `window-absolute-pixel-position' and `frame-geometry'.

It would still be useful, I think, to have a function that returns
directly the screen-relative pixel coordinates (i.e., even though
that can be got using `window-absolute-pixel-position' and
`frame-geometry'.)



  reply	other threads:[~2016-07-28 20:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-28 14:41 Display-relative coordinates Eli Zaretskii
2016-07-28 19:07 ` martin rudalics
2016-07-28 20:20   ` Drew Adams [this message]
2016-07-29  5:54     ` martin rudalics
2016-07-29 15:38       ` Drew Adams
     [not found] <<831t2dsu3y.fsf@gnu.org>
2016-07-28 20:20 ` Drew Adams
2016-07-29 13:39   ` Eli Zaretskii
     [not found] <<<831t2dsu3y.fsf@gnu.org>
     [not found] ` <<bd748cdc-2ab2-4576-9e85-1040706ffcc8@default>
     [not found]   ` <<83d1lwr2at.fsf@gnu.org>
2016-07-29 15:38     ` Drew Adams
2016-07-29 17:42       ` Eli Zaretskii

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=3c6ba762-f120-4189-833a-60ebcbcc1e65@default \
    --to=drew.adams@oracle.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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).