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#25943: 21.5 Frame Display Difficulties Date: Thu, 23 Mar 2017 08:59:49 +0100 Message-ID: <58D38075.2030409@gmx.at> References: <0b9853e8ecbdb18bb1b8c05347371a7e@127.0.0.1> <58B925A4.4060406@gmx.at> <58BA900B.6040708@gmx.at> <49adf8e1615512ac19189d75b5e04315@127.0.0.1> <58BE8138.1040607@gmx.at> <142b4d1d519a6bf87a5fe320d9eeb419@127.0.0.1> <58C118CA.8020908@gmx.at> <2395d7c6fbe7358c894bc1406ffcbf45@127.0.0.1> <58C3CF94.3080604@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000904080703020605070400" X-Trace: blaine.gmane.org 1490256096 15615 195.159.176.226 (23 Mar 2017 08:01:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2017 08:01:36 +0000 (UTC) Cc: "25943@debbugs.gnu.org" <25943@debbugs.gnu.org> To: david@ngdr.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 23 09:01:30 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 1cqxgR-0002m2-QL for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 09:01:24 +0100 Original-Received: from localhost ([::1]:54706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqxgX-00048D-Ts for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 04:01:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqxgB-0003zo-U5 for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 04:01:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqxg7-0000uv-D3 for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 04:01:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41897) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cqxg7-0000ug-9L for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 04:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cqxg7-0002nN-1o for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 04:01:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Mar 2017 08:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25943 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25943-submit@debbugs.gnu.org id=B25943.149025601510609 (code B ref 25943); Thu, 23 Mar 2017 08:01:02 +0000 Original-Received: (at 25943) by debbugs.gnu.org; 23 Mar 2017 08:00:15 +0000 Original-Received: from localhost ([127.0.0.1]:40092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqxfK-0002l3-Vb for submit@debbugs.gnu.org; Thu, 23 Mar 2017 04:00:15 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:54717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqxfI-0002ko-LB for 25943@debbugs.gnu.org; Thu, 23 Mar 2017 04:00:13 -0400 Original-Received: from [192.168.1.100] ([213.162.68.47]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LaKaw-1cTDyR3sOU-00m1v7; Thu, 23 Mar 2017 09:00:02 +0100 In-Reply-To: <58C3CF94.3080604@gmx.at> X-Provags-ID: V03:K0:HVZgachgOQghtDBuaZxSo01g4qluk+72LpBx/xmAHVvX7Qql1XU K45aUL2eq/pcVgMDg6BXEgZXYc3NNU88BsdAJ6F36vuaHLonU/S0jmpgO/F8UA0JQ37BEwk ma7tntImGgvXE4uIKXKEyhQ/fmVLRNzKa3evseXPuisTweE+qvGdvkjZmfZ4TlWO3jrklfd angZGsFcFpjmmIf020ykw== X-UI-Out-Filterresults: notjunk:1;V01:K0:bOJULIcCdWs=:FFl+HgIUXQcIeSbgif5fTj b9ezUBdkQ5rvUlQfVhY+Jskek849AN2Auy3IKHgVrEKjFnzm6OSI20VS+wDuIyX3zaufgrDzO qw8LGNZCbgN4bYgcm98Ju3/mkdm5MZ/422kvfPegkgowqUdgckYHxKiJohmKT9d4ycdgpGJyL Yvws//Csx+hIozrvoBGMFUCHee+pvCDGo1U8cJNZcq69BV8o8EH2XZOzgp20o+OUQEFuOQ88k vhXUmY25qLERwZqhkh00s574K6SBVBq2+aHA3QQKp8iuseSysIOVDzxT/LIQ484FB322khP2Z DpKcpG7W9ukqk4CttOAIskGZDnDRx7QwPBjhKP7HI/g12BGES/WF1AxatEepvP/Epjs0rJnso /DtIs9vPVHPVE1xwsjHM6Xjhk25pNdvXg+NWWvaqJPo22mTIaWLPHDu/B4ZMB/z7Sl3pzxSgz AlZ/9G0Sq2WDBhRUnTfZ0PPRAgjLTqj1ffxvb87Dm+fNCapNqy5lR2RPrQOZ0tV8hA9Skkoo5 IJHtoZOcQQsqA0as7v8Dw0oO5ekLwmi/5WdeZWW/LP8Uvyjb9jCFTKx43pJCUR/bxhEbMVAot 2GGkoqTL/QGXVs7ej+UKDZY7c4NIq0Y1LWRGSPA/FFmXU7/T76XqCvMqLd1Uk0wMw0sQMLKNb w94sVHzri0vDZke3VG1STE4EHvI37IhWaa51ZsddY1TwYzdBdndsPBbH9alg17E3Ijg+DxR4s 9aNZYUz5RIYgnYNj6OI9cXXYgdMugtYBDgpqbsuIveU+kLEIQ9Vs8E6RfvDYS+y9V9G2PGI3 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:130836 Archived-At: This is a multi-part message in MIME format. --------------000904080703020605070400 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > I'll eventually push a "fix" to the repository but this > will certainly not become part of the Emacs 25 series. I've pushed a fix to master now. So if you can work with master please update your copy and set, in your init file, the variable `x-gtk-use-window-move' to t and see whether your problem one is fixed now. To everyone who sets negative frame positions in her programs or init file: Please try loading the attached file frame-position.el, evaluate it, call `frame-position-make' which will create twelve frames evenly distributed among the corners of your screen and finally run the function `frame-position-list' whose return value lists position and size information about these frames. Here this gets me a list like ((display-pixel-width . 1680) (display-pixel-height . 1050) (arg (p-left . 40) (p-top . 40) (left . 40) (top . 40) (width . 750) (height . 360)) ... (arg (p-left . -40) (p-top . -40) (left . 904) (top . 564) (width . 750) (height . 360) (r-left . -26) (r-top . -126)) ... (fun (p-left . -40) (p-top . -40) (left . 890) (top . 564) (width . 750) (height . 360) (r-left . -40) (r-top . -126))) The "arg" frames were produced by supplying sizes and positions via the argument list of `make-frame'. The "par" frames were produced by calling `modify-frame-parameters' with the sizes and positions after the frame was made and making the frame visible after that. The "fun" frames were produced by setting frame sizes and positions after the frame was made and making the frame visible after that. p-left stands for the programmed and r-left for the realized left position. p-top and r-top do that for the top position. Ideally, these values are the same, often they aren't. Here, the difference between the "arg" and the "fun" values is that the latter apparently already counts in 14 pixels for the scroll bar. Besides that, the values are still far from correct on GNU/Linux since they do not account for the window manager decorations. I would be interested if people get results that differ from the examples I gave above. Thanks, martin --------------000904080703020605070400 Content-Type: application/emacs-lisp; name="frame-position.el" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="frame-position.el" KHNldHEgeC1ndGstdXNlLXdpbmRvdy1tb3ZlIHQpCgooZGVmdmFyIGRpc3BsYXktcGl4ZWwt d2lkdGggKGRpc3BsYXktcGl4ZWwtd2lkdGgpKQooZGVmdmFyIGRpc3BsYXktcGl4ZWwtaGVp Z2h0IChkaXNwbGF5LXBpeGVsLWhlaWdodCkpCgooZGVmdW4gZnJhbWUtcG9zaXRpb24tdGVz dC0xIChmcmFtZSkKICAobGV0KiAoKHR5cGUgKGZyYW1lLXBhcmFtZXRlciBmcmFtZSAncC10 eXBlKSkKCSAocC1sZWZ0IChmcmFtZS1wYXJhbWV0ZXIgZnJhbWUgJ3AtbGVmdCkpCgkgKHAt dG9wIChmcmFtZS1wYXJhbWV0ZXIgZnJhbWUgJ3AtdG9wKSkKCSAocG9zIChmcmFtZS1wb3Np dGlvbiBmcmFtZSkpCgkgKGxlZnQgKGNhciBwb3MpKQoJICh0b3AgKGNkciBwb3MpKQoJICh3 aWR0aCAoZnJhbWUtcGl4ZWwtd2lkdGggZnJhbWUpKQoJIChoZWlnaHQgKGZyYW1lLXBpeGVs LWhlaWdodCBmcmFtZSkpCgkgKGxpc3QgKGxpc3QgdHlwZQoJCSAgICAgKGNvbnMgJ3AtbGVm dCBwLWxlZnQpIChjb25zICdwLXRvcCBwLXRvcCkKCQkgICAgIChjb25zICdsZWZ0IGxlZnQp IChjb25zICd0b3AgdG9wKQoJCSAgICAgKGNvbnMgJ3dpZHRoIHdpZHRoKSAoY29ucyAnaGVp Z2h0IGhlaWdodCkpKSkKICAgICh3aGVuICg8IHAtbGVmdCAwKQogICAgICAobGV0ICgoci1s ZWZ0ICgrICgt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