all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: Robert Pluim <rpluim@gmail.com>
Cc: Gregory Heytings <gregory@heytings.org>,
	Eli Zaretskii <eliz@gnu.org>,
	help-gnu-emacs@gnu.org
Subject: Re: Frame shifted upwards upon changing font size
Date: Thu, 15 Sep 2022 11:43:03 +0000	[thread overview]
Message-ID: <bSqlrSxpaTRbQcmUfu80logbD_sNLD00IpB-uCFtJLUswlDwGyIiAtRp53R6uu6K2jc0L99jCVv0OOalJW_qALS18nD8zFOvnw3HExdJg1E=@proton.me> (raw)
In-Reply-To: <87bkrhksxf.fsf@gmail.com>


------- Original Message -------
On Thursday, September 15th, 2022 at 7:17 AM, Robert Pluim <rpluim@gmail.com> wrote:


> > > > > > On Wed, 14 Sep 2022 15:09:55 +0000, uzibalqa uzibalqa@proton.me said:
> 
> 
> uzibalqa> Could emacs get to understand the monitor within which the initial frame
> 
> >>
> 
> uzibalqa> gets displayed and be able to center the frame in that monitor?
> 
> >>
> 
> >>
> 
> >> `frame-monitor-attributes' will give you the same information as`
> 
> >> display-monitor-attributes-list', but for the monitor where the
> 
> >> currently selected frame is displayed.
> 
> >>
> 
> >>
> 
> >> Robert
> 
> >> --
> 
> 
> uzibalqa> frame-monitor-attributes gives me
> 
> 
> uzibalqa> ((geometry 1080 1152 1366 768) (workarea 1080 1152 1311 768) (mm-size 344 194)
> 
> 
> uzibalqa> (frames #<frame scratch 0x1c111f0> #<frame Speedbar 0x30cefc0>) (source . "Gdk"))
> 
> 
> uzibalqa> How do I interpret this, and how can I use this information?
> 
> 
> Well, you do
> 
> (alist-get 'geometry (frame-monitor-attributes))
> 
> which gives you a list, of which the 3rd element is the width of
> the monitor, which you can use in Gregoryʼs example function.
> 
> Robert
> --

Would (frame-position) and the first two elements in (alist-get 'geometry (frame-monitor-attributes))
give me the same information?




  reply	other threads:[~2022-09-15 11:43 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-13  4:27 Frame shifted upwards upon changing font size uzibalqa
2022-09-13 11:29 ` Eli Zaretskii
2022-09-13 12:10   ` uzibalqa
2022-09-13 12:25     ` uzibalqa
2022-09-13 13:22       ` Gregory Heytings
2022-09-13 13:45         ` uzibalqa
2022-09-13 13:53           ` Gregory Heytings
2022-09-13 13:57             ` uzibalqa
2022-09-13 15:28               ` Gregory Heytings
2022-09-13 21:07                 ` uzibalqa
2022-09-14 10:10                   ` Robert Pluim
2022-09-14 15:09                     ` uzibalqa
2022-09-15  7:17                       ` Robert Pluim
2022-09-15 11:43                         ` uzibalqa [this message]
2022-09-15 12:25                           ` Robert Pluim
2022-09-15 13:38                             ` Po Lu
2022-09-15 15:09                           ` Pascal Quesseveur
2022-09-15 16:07                             ` Yuri Khan
2022-09-15 16:27                               ` Pascal Quesseveur
2022-09-14 10:30                   ` Po Lu
2022-09-14 15:07                     ` uzibalqa
2022-09-14 15:21                     ` Christopher Dimech
2022-09-13 12:29     ` Eli Zaretskii
2022-09-13 12:40       ` uzibalqa
2022-09-13 13:03         ` Eli Zaretskii
2022-09-13 13:15           ` uzibalqa

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

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

  git send-email \
    --in-reply-to='bSqlrSxpaTRbQcmUfu80logbD_sNLD00IpB-uCFtJLUswlDwGyIiAtRp53R6uu6K2jc0L99jCVv0OOalJW_qALS18nD8zFOvnw3HExdJg1E=@proton.me' \
    --to=uzibalqa@proton.me \
    --cc=eliz@gnu.org \
    --cc=gregory@heytings.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rpluim@gmail.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 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.