* 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
* bug#57475: 29.0.50; Position problem with make-frame on Lucid build
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
0 siblings, 1 reply; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-30 1:54 UTC (permalink / raw)
To: Stephen Berman; +Cc: 57475
Stephen Berman <stephen.berman@gmx.net> writes:
> On a Lucid build, make-frame appears to ignore the frame parameters
> (left . 0) and (top . 0), when passed individually or together:
Please show the value of running "xprop WM_NORMAL_HINTS", and then
clicking on the frame in question after the cursor changes to a
crosshair.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#57475: 29.0.50; Position problem with make-frame on Lucid build
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
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Berman @ 2022-08-30 8:19 UTC (permalink / raw)
To: Po Lu; +Cc: 57475
On Tue, 30 Aug 2022 09:54:23 +0800 Po Lu <luangruo@yahoo.com> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> On a Lucid build, make-frame appears to ignore the frame parameters
>> (left . 0) and (top . 0), when passed individually or together:
>
> Please show the value of running "xprop WM_NORMAL_HINTS", and then
> clicking on the frame in question after the cursor changes to a
> crosshair.
Here's the output immediately after executing emacs -Q:
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified size: 674 by 676
program specified minimum size: 34 by 66
program specified resize increment: 8 by 17
program specified base size: 34 by 66
window gravity: NorthWest
And here's the output immediately after evaluating
(make-frame '((left . 0) (top . 0))) in the new frame:
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified size: 658 by 650
program specified minimum size: 34 by 66
program specified resize increment: 8 by 17
program specified base size: 34 by 66
window gravity: NorthWest
Steve Berman
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#57475: 29.0.50; Position problem with make-frame on Lucid build
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>
0 siblings, 2 replies; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-30 10:16 UTC (permalink / raw)
To: Stephen Berman; +Cc: 57475
Stephen Berman <stephen.berman@gmx.net> writes:
> And here's the output immediately after evaluating
> (make-frame '((left . 0) (top . 0))) in the new frame:
>
> WM_NORMAL_HINTS(WM_SIZE_HINTS):
> user specified size: 658 by 650
> program specified minimum size: 34 by 66
> program specified resize increment: 8 by 17
> program specified base size: 34 by 66
> window gravity: NorthWest
Right, but I'm not such which frame you clicked here: the frame in which
you evaluated make-frame, or the frame that make-frame created?
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#57475: 29.0.50; Position problem with make-frame on Lucid build
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>
1 sibling, 0 replies; 7+ messages in thread
From: Stephen Berman @ 2022-08-30 10:20 UTC (permalink / raw)
To: 57475
(Oops, left off the bug list by mistake.)
On Tue, 30 Aug 2022 18:16:28 +0800 Po Lu <luangruo@yahoo.com> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> And here's the output immediately after evaluating
>> (make-frame '((left . 0) (top . 0))) in the new frame:
>>
>> WM_NORMAL_HINTS(WM_SIZE_HINTS):
>> user specified size: 658 by 650
>> program specified minimum size: 34 by 66
>> program specified resize increment: 8 by 17
>> program specified base size: 34 by 66
>> window gravity: NorthWest
>
> Right, but I'm not such which frame you clicked here: the frame in which
> you evaluated make-frame, or the frame that make-frame created?
Sorry for the unclarity, I meant I clicked the frame that make-frame
created.
Steve Berman
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#57475: 29.0.50; Position problem with make-frame on Lucid build
[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
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Berman @ 2022-08-31 7:53 UTC (permalink / raw)
To: Po Lu; +Cc: 57475
On Wed, 31 Aug 2022 10:18:52 +0800 Po Lu <luangruo@yahoo.com> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> Sorry for the unclarity, I meant I clicked the frame that make-frame
>> created.
>
> Should be fixed now, thanks.
I confirm it is fixed - many thanks!
Steve Berman
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#57475: 29.0.50; Position problem with make-frame on Lucid build
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
0 siblings, 0 replies; 7+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-09-01 13:18 UTC (permalink / raw)
To: Stephen Berman; +Cc: 57475-done
Stephen Berman <stephen.berman@gmx.net> writes:
> On Wed, 31 Aug 2022 10:18:52 +0800 Po Lu <luangruo@yahoo.com> wrote:
>
>> Stephen Berman <stephen.berman@gmx.net> writes:
>>
>>> Sorry for the unclarity, I meant I clicked the frame that make-frame
>>> created.
>>
>> Should be fixed now, thanks.
>
> I confirm it is fixed - many thanks!
>
> Steve Berman
I'm closing this bug then, thanks.
^ 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).