From: Stephen Berman <stephen.berman@gmx.net>
To: 57475@debbugs.gnu.org
Subject: bug#57475: 29.0.50; Position problem with make-frame on Lucid build
Date: Mon, 29 Aug 2022 13:51:07 +0200 [thread overview]
Message-ID: <874jxve09g.fsf@rub.de> (raw)
On a Lucid build, make-frame appears to ignore the frame parameters
(left . 0) and (top . 0), when passed individually or together:
0. emacs -Q
1. M-: (progn (list (alist-get 'left (frame-parameters))
(alist-get 'top (frame-parameters))))
=> (938 351)
2. M-: (make-frame)
M-: (progn (list (alist-get 'left (frame-parameters))
(alist-get 'top (frame-parameters))))
=> (938 350)
3. M-: (make-frame '((left . 0) (top . 0)))
M-: (progn (list (alist-get 'left (frame-parameters))
(alist-get 'top (frame-parameters))))
=> (938 350)
4. M-: (make-frame '((left . 0)))
M-: (progn (list (alist-get 'left (frame-parameters))
(alist-get 'top (frame-parameters))))
=> (938 350)
5. M-: (make-frame '((top . 0)))
M-: (progn (list (alist-get 'left (frame-parameters))
(alist-get 'top (frame-parameters))))
=> (938 350)
If one or both of the `top' and `left' parameters has a non-zero value,
that value is correctly realized; if only one of these parameters is
passed with a non-zero value, the other parameter is realized as 0:
5. M-: (make-frame '((left . 1) (top . 1)))
M-: (progn (list (alist-get 'left (frame-parameters))
(alist-get 'top (frame-parameters))))
=> (1 1)
6. M-: (make-frame '((left . 1)))
M-: (progn (list (alist-get 'left (frame-parameters))
(alist-get 'top (frame-parameters))))
=> (1 0)
7. M-: (make-frame '((top . 1)))
M-: (progn (list (alist-get 'left (frame-parameters))
(alist-get 'top (frame-parameters))))
=> (0 1)
The Gtk3 and non-toolkit builds do not have these problems, and on the
Lucid build, modify-frame-parameters and set-frame-position also work
fine with a 0 value of these parameters.
In GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo
version 1.17.6, Xaw scroll bars) of 2022-08-28 built on strobelfs2
Repository revision: 35af917f187719fecadde278a51fd10bf47eed07
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Linux From Scratch r11.0-165
Configured using:
'configure -C --with-x-toolkit=lucid --with-xinput2 'CFLAGS=-Og -g3''
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM
XINPUT2 XPM LUCID ZLIB
next reply other threads:[~2022-08-29 11:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-29 11:51 Stephen Berman [this message]
2022-08-30 1:54 ` bug#57475: 29.0.50; Position problem with make-frame on Lucid build Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30 8:19 ` Stephen Berman
2022-08-30 10:16 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-30 10:20 ` Stephen Berman
[not found] ` <87czcivxre.fsf@gmx.net>
[not found] ` <87v8q9m9yr.fsf@yahoo.com>
2022-08-31 7:53 ` Stephen Berman
2022-09-01 13:18 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=874jxve09g.fsf@rub.de \
--to=stephen.berman@gmx.net \
--cc=57475@debbugs.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.
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).