help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `window-absolute-pixel-position' with vscroll


From: Eli Zaretskii
Subject: Re: `window-absolute-pixel-position' with vscroll
Date: Fri, 23 Jun 2023 18:47:00 +0300

> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]