unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57475: 29.0.50; Position problem with make-frame on Lucid build
@ 2022-08-29 11:51 Stephen Berman
  2022-08-30  1:54 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Berman @ 2022-08-29 11:51 UTC (permalink / raw)
  To: 57475

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





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-01 13:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29 11:51 bug#57475: 29.0.50; Position problem with make-frame on Lucid build Stephen Berman
2022-08-30  1:54 ` 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

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