[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Frame shifted upwards upon changing font size
From: |
uzibalqa |
Subject: |
Re: Frame shifted upwards upon changing font size |
Date: |
Tue, 13 Sep 2022 13:57:13 +0000 |
Sent with Proton Mail secure email.
------- Original Message -------
On Tuesday, September 13th, 2022 at 1:53 PM, Gregory Heytings
<gregory@heytings.org> wrote:
> > > (defun frame-center (&optional frame display)
> > > (interactive)
> > > (set-frame-position
> > > frame
> > > (/ (- (display-pixel-width display) (frame-pixel-width frame)) 2)
> > > (/ (- (display-pixel-height display) (frame-pixel-height frame)) 2)))
> >
> > I have different monitors with different sizes, and the function is
> > transferring the frame to a different monitor.
>
>
> In that case you need to use display-monitor-attributes-list to get the
> size of the appropriate monitor.
I get
(((geometry 1080 1152 1366 768) (workarea 1080 1152 1311 768) (mm-size 344 194)
(frames #<frame Speedbar 0x415c0c0>) (source . "Gdk"))
((geometry 0 0 1080 1920) (workarea 0 0 1080 1920) (mm-size 477 268) (frames
#<frame *scratch* 0x2ca1040>) (source . "Gdk")))
What would be the way forward?
- Frame shifted upwards upon changing font size, uzibalqa, 2022/09/13
- Re: Frame shifted upwards upon changing font size, Eli Zaretskii, 2022/09/13
- Re: Frame shifted upwards upon changing font size, uzibalqa, 2022/09/13
- Re: Frame shifted upwards upon changing font size, uzibalqa, 2022/09/13
- Re: Frame shifted upwards upon changing font size, Gregory Heytings, 2022/09/13
- Re: Frame shifted upwards upon changing font size, uzibalqa, 2022/09/13
- Re: Frame shifted upwards upon changing font size, Gregory Heytings, 2022/09/13
- Re: Frame shifted upwards upon changing font size,
uzibalqa <=
- Re: Frame shifted upwards upon changing font size, Gregory Heytings, 2022/09/13
- Re: Frame shifted upwards upon changing font size, uzibalqa, 2022/09/13
- Re: Frame shifted upwards upon changing font size, Robert Pluim, 2022/09/14
- Re: Frame shifted upwards upon changing font size, uzibalqa, 2022/09/14
- Re: Frame shifted upwards upon changing font size, Robert Pluim, 2022/09/15
- Re: Frame shifted upwards upon changing font size, uzibalqa, 2022/09/15
- Re: Frame shifted upwards upon changing font size, Robert Pluim, 2022/09/15
- Re: Frame shifted upwards upon changing font size, Po Lu, 2022/09/15
- Re: Frame shifted upwards upon changing font size, Pascal Quesseveur, 2022/09/15
- Re: Frame shifted upwards upon changing font size, Yuri Khan, 2022/09/15