From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#25851: 25.2; GTK warning when starting Emacs when desktop file has more than one frame Date: Sun, 30 Apr 2017 10:32:39 +0200 Message-ID: <5905A127.5010707@gmx.at> References: <87a89c51qb.fsf@moondust.localdomain> <831suoub86.fsf@gnu.org> <87lgswmi6a.fsf@moondust.localdomain> <83vas0rozb.fsf@gnu.org> <87k28fso3o.fsf@moondust.localdomain> <83o9xrsmrd.fsf@gnu.org> <874lzjsh8t.fsf@moondust.localdomain> <87y3wvqqos.fsf@moondust.localdomain> <83fuj2smzr.fsf@gnu.org> <87wpccmv71.fsf@moondust.localdomain> <87d1e4mq48.fsf@moondust.localdomain> <83innvppz4.fsf@gnu.org> <874lzfwkv0.fsf@moondust.localdomain> <58B54703.7060103@gmx.at> <87h93ciwyt.fsf@moondust.localdomain> <58D38082.8050104@gmx.at> <87h92kxeuu.fsf@moondust.localdomain> <58D4E07C.8010504@gmx.at> <58EC7C80.6070207@gmx.at> <87lgqlaamy.fsf@moondust.localdomain> <59046B45.8000201@gmx.at> <87pofvdn6h.fsf@moondust.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000108030000000505050901" X-Trace: blaine.gmane.org 1493541199 17438 195.159.176.226 (30 Apr 2017 08:33:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2017 08:33:19 +0000 (UTC) Cc: 25851@debbugs.gnu.org To: "N. Jackson" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 30 10:33:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4kI6-0004O6-2K for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Apr 2017 10:33:14 +0200 Original-Received: from localhost ([::1]:43845 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4kIB-0007QD-Rl for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Apr 2017 04:33:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4kHy-0007Nd-De for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 04:33:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4kHu-0002ES-VG for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 04:33:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48703) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d4kHu-0002EM-RB for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 04:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d4kHu-0005Yw-LM for bug-gnu-emacs@gnu.org; Sun, 30 Apr 2017 04:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Apr 2017 08:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25851-submit@debbugs.gnu.org id=B25851.149354117321347 (code B ref 25851); Sun, 30 Apr 2017 08:33:02 +0000 Original-Received: (at 25851) by debbugs.gnu.org; 30 Apr 2017 08:32:53 +0000 Original-Received: from localhost ([127.0.0.1]:46898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4kHk-0005YF-Tm for submit@debbugs.gnu.org; Sun, 30 Apr 2017 04:32:53 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:61810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4kHj-0005Xz-US for 25851@debbugs.gnu.org; Sun, 30 Apr 2017 04:32:52 -0400 Original-Received: from [192.168.1.101] ([213.162.68.37]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lt1S6-1e702Z2VlS-012YvL; Sun, 30 Apr 2017 10:32:45 +0200 In-Reply-To: <87pofvdn6h.fsf@moondust.localdomain> X-Provags-ID: V03:K0:52JwTRkiwHiPtBbny6s4/dK1XLJeqkFwBtx2OHBlcu1wJSJ+Ye3 NgCDxDcyAB7eC6AkH33Dsbge/5XOI4UGaLn4ctbqrXAFutp+C/K7KMGlrko2Or5UG6JmZYP qzOgKD60agql8Lqg6IdYtPVYglQLwnDq5v1Re0lQCF404PDu2AZz4Yy1QVO+WDXRIQOY4t8 efhYOe0Ctrgkv8PawuGqA== X-UI-Out-Filterresults: notjunk:1;V01:K0:LHFsUcNkMuc=:J19ezdihHSr/zAndu39a9a f8U/ncOMsJHd82vSqZHMYY+o7JP7qiAo73tYMWRTGCrumJzMZZ/c6PkKuTwGLJBbkumIKDB0e DhTY8OvDQr22T8G/VqJEQ89bbuTMp7dWUOrQDHg4E4jfkHPMVQw/PDZM+GDMAuZR3U+edBwvb QCPnBJx2SDquATjRHe72o/hwyGvPBd2TOioXul3X8tvhciokb3dCCjDSEOrG9UgubMe7SbKZu sNHLf4D11fMHgugb7t0JhNWixAPrLyGfsQyESqJagZeZB2g/MCMGA+9MZzYdoOXDZ9FmqJQLy hM165zKXvFOKV/IhIkvW+uI3SYhHHfEDOBep9DemkuXGTL9B8pbOUKvdJxEUMjGwvqqiqiesu vlZJfvW9aItq0uBzhFJ3oZqtdzR7EvGGshak2GaT0FKCCsNhgICTLfMOJMIojfqR8BI+JpPbl /e1nIZt0evg7Y/iEe7UUijA4YbK7RWUnV2La2VnBZyy38+bvCkjU9QA+arBES10Q/7Ff9ixjy khrthXdLP+kgTJHeCnOEZftgKY/xUxcjNsh1la2fwL6SsaPDBEPVqJ61Krcqpqn0/fdIouU4s 1CtNPNLWGIAE4AcByP0MltLMef8gPeBcznU9//cA1a6OYG9dWWxMybk3VZ3SQD+s7etKpT1GW b8WZIj5CaisXWe1UfLjdYa6WV6neVhGMPKpyGZRbD+NERDlHfs22VDae1ulbYw2zovYDOOcl+ tspG+AqQWyc5WydKcSgu4xw9irU3Rf+bIS3So0Hm0zdgLQIZcdFll/FdEDw= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132123 Archived-At: This is a multi-part message in MIME format. --------------000108030000000505050901 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable >> But doesn't your Emacs 25 already contain the patch? > > No. Not if I understand correctly. > > _My_ Emacs 25.2.rc2 is modified so that the entire body of > xg_set_geometry() is deleted and replaced by a call to > gtk_window_move(). This fixes the bug and did not produce any > adverse effects in six weeks of use (on my system at least). > > My Emacs 25.2 is the stock release from the tarball. I don't know > if it contains any patch for this bug, but if it does that patch > does not appear to work. > >> The only difference I made lately was to set the default value >> of =E2=80=98x-gtk-use-window-move=E2=80=99 so all you have to do is t= o make the >> last line of your xterm.c read >> >> x_gtk_use_window_move =3D true; > > The symbol `x_gtk_use_window_move' is not defined in the emacs-25 > branch, only in master. Sorry. I forgot to tell you to apply that change to your Emacs 25 back then. Please remove any changes I proposed earlier and try to apply the attached x_gtk_use_window_move.diff to your Emacs 25. Thanks, martin --------------000108030000000505050901 Content-Type: text/plain; charset=windows-1252; name="x_gtk_use_window_move.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="x_gtk_use_window_move.diff" LS0tIGEvc3JjL2d0a3V0aWwuYworKysgYi9zcmMvZ3RrdXRpbC5jCkBAIC03ODMsMzMgKzc4 Myw1NSBAQCB4Z19zZXRfZ2VvbWV0cnkgKHN0cnVjdCBmcmFtZSAqZikKIHsKICAgaWYgKGYt PnNpemVfaGludF9mbGFncyAmIChVU1Bvc2l0aW9uIHwgUFBvc2l0aW9uKSkKICAgICB7Ci0g ICAgICBpbnQgbGVmdCA9IGYtPmxlZnRfcG9zOwotICAgICAgaW50IHhuZWcgPSBmLT5zaXpl X2hpbnRfZmxhZ3MgJiBYTmVnYXRpdmU7Ci0gICAgICBpbnQgdG9wID0gZi0+dG9wX3BvczsK LSAgICAgIGludCB5bmVnID0gZi0+c2l6ZV9oaW50X2ZsYWdzICYgWU5lZ2F0aXZlOwotICAg ICAgY2hhciBnZW9tX3N0cltzaXplb2YgIj14LS0iICsgNCAqIElOVF9TVFJMRU5fQk9VTkQg KGludCldOwotICAgICAgZ3VpbnQgaWQ7Ci0KLSAgICAgIGlmICh4bmVnKQotICAgICAgICBs ZWZ0ID0gLWxlZnQ7Ci0gICAgICBpZiAoeW5lZykKLSAgICAgICAgdG9wID0gLXRvcDsKLQot ICAgICAgc3ByaW50ZiAoZ2VvbV9zdHIsICI9JWR4JWQlYyVkJWMlZCIsCi0gICAgICAgICAg ICAgICBGUkFNRV9QSVhFTF9XSURUSCAoZiksCi0gICAgICAgICAgICAgICBGUkFNRV9QSVhF TF9IRUlHSFQgKGYpLAotICAgICAgICAgICAgICAgKHhuZWcgPyAnLScgOiAnKycpLCBsZWZ0 LAotICAgICAgICAgICAgICAgKHluZWcgPyAnLScgOiAnKycpLCB0b3ApOwotCi0gICAgICAv KiBTaWxlbmNlIHdhcm5pbmc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