From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#52697: 29.0.50; pgtk: wrong initial frame parameter values Date: Tue, 08 Feb 2022 13:48:49 +0100 Message-ID: <87a6f11q32.fsf@gmx.net> References: <8735mmwco9.fsf@gmx.net> <87sfst4lkr.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13379"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 52697@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 08 15:17:56 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHRJb-0003JP-5Z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 15:17:55 +0100 Original-Received: from localhost ([::1]:45030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHRJa-0001ri-34 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Feb 2022 09:17:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHPva-0001hY-KT for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 07:49:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHPva-0005eg-6I for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 07:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHPva-0002LW-4j for bug-gnu-emacs@gnu.org; Tue, 08 Feb 2022 07:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Feb 2022 12:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52697 X-GNU-PR-Package: emacs Original-Received: via spool by 52697-submit@debbugs.gnu.org id=B52697.16443245419011 (code B ref 52697); Tue, 08 Feb 2022 12:49:02 +0000 Original-Received: (at 52697) by debbugs.gnu.org; 8 Feb 2022 12:49:01 +0000 Original-Received: from localhost ([127.0.0.1]:45785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHPvZ-0002LH-35 for submit@debbugs.gnu.org; Tue, 08 Feb 2022 07:49:01 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:52161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHPvW-0002L4-RH for 52697@debbugs.gnu.org; Tue, 08 Feb 2022 07:48:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644324531; bh=QXYYw0MIR987HsKDcEdoHQXMCSB023N0Fs3ABvN1UGM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=FeA3PrDsK28hFB3fFxktyqQzU2C3Q0rCFy/TBrIHPilYIn7LySXkZ2Q+lvRS/VJ7z QaBAu4NnU/e4L594diX9xdyyKiJobIcvUXlojQanBvDBFKkt96mh9yyp/EQmtvUJia buqXb/IRpGmOC4ClfcFRFhxbVMu8eje+aWRT1gHA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.38.38]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MqJqN-1o3epV3PQR-00nPaB; Tue, 08 Feb 2022 13:48:50 +0100 In-Reply-To: <87sfst4lkr.fsf@yahoo.com> (Po Lu's message of "Tue, 08 Feb 2022 19:57:56 +0800") X-Provags-ID: V03:K1:2mfOwKsxbVbIwXN5HPoZqqS8Q5E9mmUAMSKG8XcrJKsIFBfsRjd /J/17aCo4WU++7ipWi75FxXYPcjZ7LlLCltJerKlPqVcdg4KRtWkr0SGG1zysGkf4CMPFxd /EF06N8pP9Y8xClvKFZVheVQRJWivgi1FHpVxC2GXLEVVIOoZGz2/ow15jXr7Vqa1Q0GZQC XELw8fPoEq3kRIOxCIJGw== X-UI-Out-Filterresults: notjunk:1;V03:K0:aWTL75mPu6M=:5cgXbPr9hg2gimTusce8mH nfGnH3ipf2K0idGjRJ04RCeayGKT+u1tU0NMo1pkAM/9faN5jjniAwK9+pKPSMKK3y6g0jhbz 9lKzdPrVkFZknZP1y/MWhzUscVzaKy8vYutRvdoPnqUU0e5XgCNl60FofPmiw39c0zdv7Vg40 EMjcDvyi2VVbcsflFL95kLmYHeujLfNOBd0h4cjkfn30poGsNhc/svhYRnisjdyplLUtS0r4r 8Icjv3WVvfehfHOJ+fSvTs8e9gv6mJ1sunSrOECoxpedmJhdbIjef9nwlXnEjhaYdb5+T5L62 kamNlssSZ1JMczcsBo5aLZnXTJkXqP/YUMCvG7AuAhyo4YQHXCC47pRmxLa5d15TjpNqmst6l gMBWNlqUorqE6WcGFmxwv4POTqzUytsekimDL9fUvxR2++qD9b6pOe020ogInXG2U9H7xtgMh nHNECLwNmVxwEWel0p5TYl/OeTBPLLxkMVhBeR9pxCmnETuGburxzQ8yoEAdIydBINnYaMaS8 xbBmHP1cu5xjwxjCae6GFhkguFx1fREQnoLAe3TjglVHjy+Zg8oowpWYINRVcQr0KdEdPaCKt bVGjn9K8mp37tSJHGuN/Ln5vqiMRF+VFtOWHQ8yIVFKpFpxgjU+QSYu2F6UXSD5v3oEr4G1qr hOR3kHU5BhJumzK9sXQYaQMay5Epg+pw/kkc8/H7WHFqapkAyV8wiuGjzxfoRuwvmKhhoafYp eyy00mRFkTaztlbSbZ+Qrpx6APH/rUsKhJmFg8Y4JOQ7DnymgXzK+tVGzaJpaZVFf7gZkDJB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226368 Archived-At: --=-=-= Content-Type: text/plain On Tue, 08 Feb 2022 19:57:56 +0800 Po Lu wrote: > Stephen Berman 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: --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Description: pgtkterm.c patch Content-Transfer-Encoding: quoted-printable diff --git a/src/pgtkterm.c b/src/pgtkterm.c index e9fd5f83b7..8faffe94d4 100644 =2D-- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -5552,7 +5552,7 @@ configure_event (GtkWidget *widget, if (f->win_gravity =3D=3D NorthWestGravity) gtk_window_get_position (GTK_WINDOW (widget), - &f->top_pos, &f->left_pos); + &f->left_pos, &f->top_pos); else { f->top_pos =3D event->configure.y; --=-=-= Content-Type: text/plain Steve Berman --=-=-=--