From unknown Mon Aug 18 14:22:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5968 <5968@debbugs.gnu.org> To: bug#5968 <5968@debbugs.gnu.org> Subject: Status: Problems with 'geometry' [GTK,Cygwin,trunk] Reply-To: bug#5968 <5968@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:22:55 +0000 retitle 5968 Problems with 'geometry' [GTK,Cygwin,trunk] reassign 5968 emacs submitter 5968 Angelo Graziosi severity 5968 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 18 05:54:07 2010 Received: (at submit) by debbugs.gnu.org; 18 Apr 2010 09:54:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3RCZ-0002Cb-Dg for submit@debbugs.gnu.org; Sun, 18 Apr 2010 05:54:07 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3RCX-0002CF-5w for submit@debbugs.gnu.org; Sun, 18 Apr 2010 05:54:06 -0400 Received: from lists.gnu.org ([199.232.76.165]:42221) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O3RCU-0004gB-CR for submit@debbugs.gnu.org; Sun, 18 Apr 2010 05:54:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3RCT-0000qn-Nk for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2010 05:54:01 -0400 Received: from [140.186.70.92] (port=38865 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3RCR-0000qL-V8 for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2010 05:54:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RECEIVED_FROM_WINDOWS_HOST, T_RP_MATCHES_RCVD autolearn=no version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3RCQ-0003J8-RA for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2010 05:53:59 -0400 Received: from smtp-out30.alice.it ([85.33.2.30]:3116) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3RCQ-0003Il-Lx for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2010 05:53:58 -0400 Received: from fbcmmo06.fbc.local ([192.168.184.137]) by smtp-out30.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sun, 18 Apr 2010 11:53:56 +0200 Received: from FBCMCL01B04.fbc.local ([192.168.69.85]) by fbcmmo06.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 18 Apr 2010 11:52:36 +0200 Received: from [82.57.145.7] ([82.57.145.7]) by FBCMCL01B04.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 18 Apr 2010 11:52:35 +0200 Message-ID: <4BCAD65F.6090500@alice.it> Date: Sun, 18 Apr 2010 11:52:31 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: bug-gnu-emacs Subject: Problems with 'geometry' [GTK,Cygwin,trunk] Content-Type: multipart/mixed; boundary="------------000905060906060409080307" X-OriginalArrivalTime: 18 Apr 2010 09:52:35.0840 (UTC) FILETIME=[DF8FE000:01CADEDC] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) This is a multi-part message in MIME format. --------------000905060906060409080307 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I have in .Xdefaults: Emacs.geometry: 80x40-0+0 which has always started Emacs with the top-right corner (TRC) over the same corner of Desktop. But now, the revisions 99918, 99920, 99922... of trunk (GTK build on Cygwin) starts Emacs with TRC *out* the Desktop! See the attached figure in [*]! :( I suspect this is related: src/ChangeLog: ================================================== [...] 2010-04-13 Jan DjÃrv <...> * gtkutil.c (xg_set_geometry): Set geometry for PPosition also. (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry does that. [...] ================================================== Rev. 99880 works just fine... Indeed, reverting *only* the changes to 'gtkutil.c' (applying 'gtkutil.c.revert_to_880.diff') and building rev. 99922, Emacs starts as expected!! :-) Perhaps these changes are the cause of the problems: ==================== [...] - if (user_position) - { - hint_flags &= ~GDK_HINT_POS; - hint_flags |= GDK_HINT_USER_POS; - } [...] ==================== It seems that this problem is Cygwin specific, I can't reproduce it on GNU/Linux Kubuntu 9.10. On Cygwin, it can be reproduced simply with: $ emacs -Q --geometry 80x40-0+0 & or $ emacs -Q --geometry -0+0 & Thanks, Angelo. --- [*] http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00772.html --------------000905060906060409080307 Content-Type: text/plain; name="gtkutil.c.revert_to_880.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="gtkutil.c.revert_to_880.diff" LS0tIC90bXAvZW1hY3Mvc3JjL2d0a3V0aWwuYwkyMDEwLTA0LTEzIDE4OjMzOjM2LjAwMDAw MDAwMCArMDIwMAorKysgZW1hY3MyNC9zcmMvZ3RrdXRpbC5jCTIwMTAtMDItMjQgMjM6NDY6 MjAuMDAwMDAwMDAwICswMTAwCkBAIC01MjksNyArNTI5LDcgQEAKIHhnX3NldF9nZW9tZXRy eSAoZikKICAgICAgRlJBTUVfUFRSIGY7CiB7Ci0gIGlmIChmLT5zaXplX2hpbnRfZmxhZ3Mg JiAoVVNQb3NpdGlvbiB8IFBQb3NpdGlvbikpCisgIGlmIChmLT5zaXplX2hpbnRfZmxhZ3Mg JiBVU1Bvc2l0aW9uKQogICAgIHsKICAgICAgIGludCBsZWZ0ID0gZi0+bGVmdF9wb3M7CiAg ICAgICBpbnQgeG5lZyA9IGYtPnNpemVfaGludF9mbGFncyAmIFhOZWdhdGl2ZTsKQEAgLTU0 Miw3ICs1NDIsOSBAQAogICAgICAgaWYgKHluZWcpCiAgICAgICAgIHRvcCA9IC10b3A7CiAK LSAgICAgIHNwcmludGYgKGdlb21fc3RyLCAiJWMlZCVjJWQiLAorICAgICAgc3ByaW50ZiAo Z2VvbV9zdHIsICI9JWR4JWQlYyVkJWMlZCIsCisgICAgICAgICAgICAgICBGUkFNRV9QSVhF TF9XSURUSCAoZiksCisgICAgICAgICAgICAgICBGUkFNRV9UT1RBTF9QSVhFTF9IRUlHSFQg KGYpLAogICAgICAgICAgICAgICAgKHhuZWcgPyAnLScgOiAnKycpLCBsZWZ0LAogICAgICAg ICAgICAgICAgKHluZWcgPyAnLScgOiAnKycpLCB0b3ApOwogCkBAIC01NTAsNiArNTUyLDkg QEAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZ2VvbV9zdHIpKQog ICAgICAgICBmcHJpbnRmIChzdGRlcnIsICJGYWlsZWQgdG8gcGFyc2U6ICclcydcbiIsIGdl b21fc3RyKTsKICAgICB9CisgIGVsc2UgaWYgKGYtPnNpemVfaGludF9mbGFncyAmIFBQb3Np dGlvbikKKyAgICBndGtfd2luZG93X21vdmUgKEdUS19XSU5ET1cgKEZSQU1FX0dUS19PVVRF Ul9XSURHRVQgKGYpKSwKKyAgICAgICAgICAgICAgICAgICAgIGYtPmxlZnRfcG9zLCBmLT50 b3BfcG9zKTsKIH0KIAogLyogQ2xlYXIgdW5kZXIgaW50ZXJuYWwgYm9yZGVyIGlmIGFueS4g IEFzIHdlIHVzZSBhIG1peCBvZiBHdGsrIGFuZCBYIGNhbGxzCkBAIC05NTEsNiArOTU2LDE2 IEBACiAgIGVsc2UgaWYgKHdpbl9ncmF2aXR5ID09IFN0YXRpY0dyYXZpdHkpCiAgICAgc2l6 ZV9oaW50cy53aW5fZ3Jhdml0eSA9IEdES19HUkFWSVRZX1NUQVRJQzsKIAorICBpZiAoZmxh Z3MgJiBQUG9zaXRpb24pIGhpbnRfZmxhZ3MgfD0gR0RLX0hJTlRfUE9TOworICBpZiAoZmxh Z3MgJiBVU1Bvc2l0aW9uKSBoaW50X2ZsYWdzIHw9IEdES19ISU5UX1VTRVJfUE9TOworICBp ZiAoZmxhZ3MgJiBVU1NpemUpIGhpbnRfZmxhZ3MgfD0gR0RLX0hJTlRfVVNFUl9TSVpFOwor CisgIGlmICh1c2VyX3Bvc2l0aW9uKQorICAgIHsKKyAgICAgIGhpbnRfZmxhZ3MgJj0gfkdE S19ISU5UX1BPUzsKKyAgICAgIGhpbnRfZmxhZ3MgfD0gR0RLX0hJTlRfVVNFUl9QT1M7Cisg ICAgfQorCiAgIGlmIChoaW50X2ZsYWdzICE9IGYtPm91dHB1dF9kYXRhLngtPmhpbnRfZmxh Z3MKICAgICAgIHx8IG1lbWNtcCAoJnNpemVfaGludHMsCiAJCSAmZi0+b3V0cHV0X2RhdGEu eC0+c2l6ZV9oaW50cywK --------------000905060906060409080307-- From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 18 07:28:58 2010 Received: (at 5968-done) by debbugs.gnu.org; 18 Apr 2010 11:28:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3SgL-0002s9-Ua for submit@debbugs.gnu.org; Sun, 18 Apr 2010 07:28:58 -0400 Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3SgI-0002s4-Nm for 5968-done@debbugs.gnu.org; Sun, 18 Apr 2010 07:28:55 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 9B580CC9D for <5968-done@debbugs.gnu.org>; Sun, 18 Apr 2010 13:28:48 +0200 (CEST) X-SENDER-IP: [85.225.45.110] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ajg7AJ6JyktV4S1uPGdsb2JhbACDFIRSlBIMAQEBATUtqUuQCoEsgnZuBA X-IronPort-AV: E=Sophos;i="4.52,230,1270418400"; d="scan'208";a="65023647" Received: from c-6e2de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.110]) by ipb1.telenor.se with ESMTP; 18 Apr 2010 13:28:48 +0200 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 938FB7FA05A; Sun, 18 Apr 2010 13:28:47 +0200 (CEST) Message-ID: <4BCAECEF.3020001@swipnet.se> Date: Sun, 18 Apr 2010 13:28:47 +0200 From: =?UTF-8?B?SmFuIERqw6Rydg==?= User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: Angelo Graziosi Subject: Re: bug#5968: Problems with 'geometry' [GTK,Cygwin,trunk] References: <4BCAD65F.6090500@alice.it> In-Reply-To: <4BCAD65F.6090500@alice.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 5968-done Cc: 5968-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) This is a combination of a race condition (frame is not visible when geometry is set), and the fact that the window manager doesn't honor gravity correctly. I reinstalled the change below. It is in principle redundant as Gtk+ sets this when parsing geometry, but the window manager doesn't seem to honor it when the window is later shown at a different size. Marking as done. Jan D. > Rev. 99880 works just fine... Indeed, reverting *only* the changes to > 'gtkutil.c' (applying 'gtkutil.c.revert_to_880.diff') and building rev. > 99922, Emacs starts as expected!! :-) > > Perhaps these changes are the cause of the problems: > > ==================== > [...] > - if (user_position) > - { > - hint_flags &= ~GDK_HINT_POS; > - hint_flags |= GDK_HINT_USER_POS; > - } > [...] > ==================== > > It seems that this problem is Cygwin specific, I can't reproduce it on > GNU/Linux Kubuntu 9.10. > Jan D. From unknown Mon Aug 18 14:22:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 May 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator