* bug#52697: 29.0.50; pgtk: wrong initial frame parameter values
@ 2021-12-21 9:05 Stephen Berman
2022-02-08 11:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Berman @ 2021-12-21 9:05 UTC (permalink / raw)
To: 52697
With Emacs built from master without pgtk, I start with -Q and evaluate
the following sexps, yielding the results shown:
(alist-get 'left (frame-parameters))
939
(alist-get 'top (frame-parameters))
371
With Emacs built from master with pgtk, I start with -Q and evaluate
the same sexps, yielding the following results:
(alist-get 'left (frame-parameters))
0
(alist-get 'top (frame-parameters))
0
The results in the non-pgtk build are correct: the frame is in the
middle of the screen, not in the upper left corner. This is with Xfce
and the xfwm4 window manager.
In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4)
of 2021-12-20 built on strobelfs
Repository revision: de797bb853e85e3cc3c9ec71f51e4e78e41af4ab
Repository branch: master
Windowing system distributor 'System Description: Linux From Scratch 10.2-rc1
Configured using:
'configure --with-pgtk 'CFLAGS=-Og -g3''
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PGTK PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM GTK3
ZLIB
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#52697: 29.0.50; pgtk: wrong initial frame parameter values
2021-12-21 9:05 bug#52697: 29.0.50; pgtk: wrong initial frame parameter values Stephen Berman
@ 2022-02-08 11:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-08 12:48 ` Stephen Berman
0 siblings, 1 reply; 5+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-08 11:57 UTC (permalink / raw)
To: Stephen Berman; +Cc: 52697
Stephen Berman <stephen.berman@gmx.net> writes:
> With Emacs built from master without pgtk, I start with -Q and evaluate
> the following sexps, yielding the results shown:
>
> (alist-get 'left (frame-parameters))
> 939
>
> (alist-get 'top (frame-parameters))
> 371
>
> With Emacs built from master with pgtk, I start with -Q and evaluate
> the same sexps, yielding the following results:
>
> (alist-get 'left (frame-parameters))
> 0
>
> (alist-get 'top (frame-parameters))
> 0
>
> The results in the non-pgtk build are correct: the frame is in the
> middle of the screen, not in the upper left corner. This is with Xfce
> and the xfwm4 window manager.
Thanks, should be fixed now on master.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#52697: 29.0.50; pgtk: wrong initial frame parameter values
2022-02-08 11:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-02-08 12:48 ` Stephen Berman
2022-02-08 13:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 5+ messages in thread
From: Stephen Berman @ 2022-02-08 12:48 UTC (permalink / raw)
To: Po Lu; +Cc: 52697
[-- Attachment #1: Type: text/plain, Size: 921 bytes --]
On Tue, 08 Feb 2022 19:57:56 +0800 Po Lu <luangruo@yahoo.com> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> With Emacs built from master without pgtk, I start with -Q and evaluate
>> the following sexps, yielding the results shown:
>>
>> (alist-get 'left (frame-parameters))
>> 939
>>
>> (alist-get 'top (frame-parameters))
>> 371
>>
>> With Emacs built from master with pgtk, I start with -Q and evaluate
>> the same sexps, yielding the following results:
>>
>> (alist-get 'left (frame-parameters))
>> 0
>>
>> (alist-get 'top (frame-parameters))
>> 0
>>
>> The results in the non-pgtk build are correct: the frame is in the
>> middle of the screen, not in the upper left corner. This is with Xfce
>> and the xfwm4 window manager.
>
> Thanks, should be fixed now on master.
Thanks very much, I confirm your patch essentially fixes the bug, except
for mistakenly switching the top and left parameters:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pgtkterm.c patch --]
[-- Type: text/x-patch, Size: 411 bytes --]
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index e9fd5f83b7..8faffe94d4 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -5552,7 +5552,7 @@ configure_event (GtkWidget *widget,
if (f->win_gravity == NorthWestGravity)
gtk_window_get_position (GTK_WINDOW (widget),
- &f->top_pos, &f->left_pos);
+ &f->left_pos, &f->top_pos);
else
{
f->top_pos = event->configure.y;
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
Steve Berman
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#52697: 29.0.50; pgtk: wrong initial frame parameter values
2022-02-08 12:48 ` Stephen Berman
@ 2022-02-08 13:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-08 14:12 ` Stephen Berman
0 siblings, 1 reply; 5+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-02-08 13:39 UTC (permalink / raw)
To: Stephen Berman; +Cc: 52697
Stephen Berman <stephen.berman@gmx.net> writes:
> Thanks very much, I confirm your patch essentially fixes the bug, except
> for mistakenly switching the top and left parameters:
>
> diff --git a/src/pgtkterm.c b/src/pgtkterm.c
> index e9fd5f83b7..8faffe94d4 100644
> --- a/src/pgtkterm.c
> +++ b/src/pgtkterm.c
> @@ -5552,7 +5552,7 @@ configure_event (GtkWidget *widget,
>
> if (f->win_gravity == NorthWestGravity)
> gtk_window_get_position (GTK_WINDOW (widget),
> - &f->top_pos, &f->left_pos);
> + &f->left_pos, &f->top_pos);
> else
> {
> f->top_pos = event->configure.y;
>
>
> Steve Berman
Thanks, should be fixed now on master.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#52697: 29.0.50; pgtk: wrong initial frame parameter values
2022-02-08 13:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-02-08 14:12 ` Stephen Berman
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Berman @ 2022-02-08 14:12 UTC (permalink / raw)
To: Po Lu; +Cc: 52697-done
On Tue, 08 Feb 2022 21:39:17 +0800 Po Lu <luangruo@yahoo.com> wrote:
> Stephen Berman <stephen.berman@gmx.net> writes:
>
>> Thanks very much, I confirm your patch essentially fixes the bug, except
>> for mistakenly switching the top and left parameters:
>>
>> diff --git a/src/pgtkterm.c b/src/pgtkterm.c
>> index e9fd5f83b7..8faffe94d4 100644
>> --- a/src/pgtkterm.c
>> +++ b/src/pgtkterm.c
>> @@ -5552,7 +5552,7 @@ configure_event (GtkWidget *widget,
>>
>> if (f->win_gravity == NorthWestGravity)
>> gtk_window_get_position (GTK_WINDOW (widget),
>> - &f->top_pos, &f->left_pos);
>> + &f->left_pos, &f->top_pos);
>> else
>> {
>> f->top_pos = event->configure.y;
>>
>>
>> Steve Berman
>
> Thanks, should be fixed now on master.
Thanks, with that I'm closing the bug.
Steve Berman
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-02-08 14:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-21 9:05 bug#52697: 29.0.50; pgtk: wrong initial frame parameter values Stephen Berman
2022-02-08 11:57 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-08 12:48 ` Stephen Berman
2022-02-08 13:39 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-08 14:12 ` Stephen Berman
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.