From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: `window-absolute-pixel-position' with vscroll
Date: Fri, 23 Jun 2023 18:47:00 +0300 [thread overview]
Message-ID: <83cz1m18qz.fsf@gnu.org> (raw)
In-Reply-To: <87ilbedwvr.fsf@zohomail.eu> (message from Rahguzar on Fri, 23 Jun 2023 17:22:01 +0200)
> From: Rahguzar <rahguzar@zohomail.eu>
> Date: Fri, 23 Jun 2023 17:22:01 +0200
> cc: help-gnu-emacs@gnu.org
>
> >> This was the cause of my confusion. Though it seems to me that the
> >> position is not relative to the upper left corner of the terminal.
> >> Rather it is relative upper left corner of the Emacs frame excluding the
> >> menu bar and tool bar. Starting with `emacs -Q` and doing
> >>
> >> `M:- (window-absolute-pixel-position (window-start))`
> >>
> >> always prints `(0 . 0)`.
> >
> > Not here, it doesn't. What I get is result that depends on the
> > position of the Emacs frame on display.
> >
> > Are you trying this in "emacs -nw" or in a GUI session?
>
> I am using GUI session built with pgtk.
Ah, then this is a known problem with the PGTK builds: the Wayland and
similar backends don't supply the information which Emacs needs to
calculate the offset from the display screen's top-left corner.
next prev parent reply other threads:[~2023-06-23 15:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87r0q2dxvz.fsf@zohomail.eu>
[not found] ` <83fs6i1a64.fsf@gnu.org>
2023-06-23 15:22 ` `window-absolute-pixel-position' with vscroll Rahguzar
2023-06-23 15:47 ` Eli Zaretskii [this message]
2023-06-21 20:42 Rahguzar
2023-06-22 16:59 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2023-06-20 19:23 Rahguzar
2023-06-21 12:50 ` 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=83cz1m18qz.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.
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).