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#31745: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A?= bug#31745: =?UTF-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A=E5=9B=9E=E5=A4=8D=EF=BC=9ARe:_?= =?UTF-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9Abug#31745:?= Frame's bug whenwindow-system Date: Thu, 28 Jun 2018 14:25:20 +0200 Message-ID: <5B34D3B0.3060302@gmx.at> References: <878t7pms1e.fsf@gmail.com> <87r2lho3cg.fsf@gmail.com> <5B2CB9B3.1000600@gmx.at> <87r2ky2852.fsf@gmail.com> <5B2E077E.7070907@gmx.at> <871scsr4bj.fsf@gmail.com> <5B34962C.6050408@gmx.at> <871scrpbap.fsf@gmail.com> <5B349D71.3090301@gmx.at> <87tvpnnuuw.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1530188654 25629 195.159.176.226 (28 Jun 2018 12:24:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 28 Jun 2018 12:24:14 +0000 (UTC) Cc: 31745@debbugs.gnu.org, =?UTF-8?Q?=E5=88=98=E5=8A=9B=E9=93=AD?= To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 28 14:24:10 2018 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 1fYVy5-0006Yo-No for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jun 2018 14:24:09 +0200 Original-Received: from localhost ([::1]:36350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYW0C-00017m-V8 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jun 2018 08:26:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYVzy-00015r-4d for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2018 08:26:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYVzv-0006nI-09 for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2018 08:26:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58615) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYVzu-0006n2-Sd for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2018 08:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYVzu-0006R1-MU for bug-gnu-emacs@gnu.org; Thu, 28 Jun 2018 08:26: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: Thu, 28 Jun 2018 12:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31745 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31745-submit@debbugs.gnu.org id=B31745.153018874524694 (code B ref 31745); Thu, 28 Jun 2018 12:26:02 +0000 Original-Received: (at 31745) by debbugs.gnu.org; 28 Jun 2018 12:25:45 +0000 Original-Received: from localhost ([127.0.0.1]:38275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYVzd-0006QD-HT for submit@debbugs.gnu.org; Thu, 28 Jun 2018 08:25:45 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:33543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYVza-0006Px-3c for 31745@debbugs.gnu.org; Thu, 28 Jun 2018 08:25:44 -0400 Original-Received: from [192.168.1.101] ([212.95.5.19]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lmb2Z-1g8Odd2XT9-00aAWD; Thu, 28 Jun 2018 14:25:30 +0200 In-Reply-To: <87tvpnnuuw.fsf@gmail.com> X-Provags-ID: V03:K1:OgxnKFS4llFm/i0lkM6/2VPKDTYRBP8qz1lo4dP7RYB2BVULtuq ltlVDt3AuGJftGs5gQcBRqOS98hs9KSP6YyeS5TJYdp7Bfpsb3vaMoVwYtb+e2aP2ajXrOs x+ViKP151EW4UlDdzFgU4gxto9R7ycR0LILZSlr5Luur9O38cgtUAhNoGKF4jIqUQhlnndB WNnqfKg79ISeqrR9uUrJw== X-UI-Out-Filterresults: notjunk:1;V01:K0:t8Aob5uZ1Lo=:D1JehIQV6q2XvkNt0j8B1O UvsTfqHzH6w+bgmxkk9gFgDsCuO8vpkukO9rRaL8+/RLsz0CTdrcr7ccBkwzPXAMg+9RSfMl7 0o8CA3vuXKxUNap4mocJj9BJDMJMiXUBYeVKVTsK6+bBriUENFMUCeA9PJ80gnpOlg//V4H59 NI+lfPTzdN/rz81LjS9YtQJDBOwPnWLhJxLOl42wh4d1JvuJJvFljnGP2A5T2HbqtA4JnhLdi g1wisdvat04MNHbCPRdCWAHvW2fr33CBWEjNYtLmV5uCyEZFoAsSJBUG8ZYy799qRESEo/5c7 uGOBTFrMoZk/H1UIc4QytwYMAZcDuf0FERwf5oTVFTzuxUgjwy6r4Jz0iR2ddgSOkpn0AHydR 4FrLFkx+J+AwN+qv2URSIo/q98PPle19RHp+fuDUbDYnDS92CAz5KvwdZ4AtI7JTbZjpL/gWG szOS6YWGB73IFAiBpzZRV03W7m1t+sn33yBAseX7FK+XoYeCAMcK0E0tR2RRWm6S0DJar6ysa art9ZNlUaENXkFs15r1fb5+4xWX31OGU8F1gXqIm+XJhCtopxnqnFbEcm7AAw2JkZLUUww1lo luu4xUH6Pia7slbd9RkY1PzIrtBF7+ogZKex9lKZ8ccayQqnmckcvuWFEwzkFYR4N5ZGBxBfe QM1U5sM9KgGT5IaBa5HyKudhUf+kGUqp9ia9j7/rgilurAgF6SrEViW0iqXDefDtHEcS12o+T i+1vEp6rtrezm5Lio5g8RTH7tqGh9io6qQ8iZYDGmAInIaovrHEAgl9ddak0UVSt1FQqJzIn 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:147903 Archived-At: >> (modify-frame-parameters nil '((left . 0) (top . 0) (width . 130) (height . 56))) >> > > That does nothing, but the following resizes the frame: > > (modify-frame-parameters nil '((left . 0) (top . 0) (width . 100) (height . 48))) > > And has done the right thing: > > (frame-parameter nil 'height) => 48 > (frame-parameter nil 'width) => 100 Looks like the missing link. If your window manager refuses to resize the frame, it probably decides that it would not fit on the screen. Please increase separately from 48 and 100 till you find the problematic value and compare it against your workspace size. >> What give (frame-pixel-width) and (frame-pixel-height) for this frame >> in the bad and good states? >> > > Bad: > > (frame-pixel-width) => 1849 > (frame-pixel-height) => 1680 > > Good: > > (frame-pixel-width) => 1849 > (frame-pixel-height) => 1680 This looks like our bad. Somehow we decide that the window manager will comply and set the values we asked for. Do these values also occur with emacs -Q followed by (modify-frame-parameters nil '((left . 0) (top . 0) (width . 130) (height . 56))) I suppose not since otherwise you would have probably told me so. >> Can you try with another toolkit or X without any toolkit so we can >> tell whether this is GTK or window manager specific? > > --with-x-toolkit={none,lucid} both work fine (although you can see the > modeline of the frame appear as if it were 80x36, and then it > resizes correctly to 130x56). This implies that the bug is somewhere in our interception of X messages and letting GTK not see them (otherwise GTK should have reported an error). However, it contradicts the assumption that the window manager refuses to resize our frame since otherwise it would have done so for the Lucid build too. Rather it seems that GTK itself decides that the frame is too large to fit on the screen. But without signalling an error? martin