From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim 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: Fri, 29 Jun 2018 13:57:59 +0200 Message-ID: <87vaa1ajp4.fsf@gmail.com> 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> <5B34D3B0.3060302@gmx.at> <87in63ateo.fsf@gmail.com> <5B35F0DA.108@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530273425 5446 195.159.176.226 (29 Jun 2018 11:57:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2018 11:57:05 +0000 (UTC) Cc: 31745@debbugs.gnu.org, =?UTF-8?Q?=E5=88=98=E5=8A=9B=E9=93=AD?= To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 29 13:57:01 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 1fYs1N-0001IF-4I for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jun 2018 13:57:01 +0200 Original-Received: from localhost ([::1]:41469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYs3U-0000WD-CJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jun 2018 07:59:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYs3N-0000Vv-LA for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 07:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYs3K-0005ye-Dz for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 07:59:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59654) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYs3K-0005xs-84 for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 07:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYs3J-00084B-WE for bug-gnu-emacs@gnu.org; Fri, 29 Jun 2018 07:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Jun 2018 11:59:01 +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.153027349030949 (code B ref 31745); Fri, 29 Jun 2018 11:59:01 +0000 Original-Received: (at 31745) by debbugs.gnu.org; 29 Jun 2018 11:58:10 +0000 Original-Received: from localhost ([127.0.0.1]:39318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYs2T-000837-Qs for submit@debbugs.gnu.org; Fri, 29 Jun 2018 07:58:10 -0400 Original-Received: from mail-wr0-f175.google.com ([209.85.128.175]:43490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fYs2S-00082r-4i for 31745@debbugs.gnu.org; Fri, 29 Jun 2018 07:58:08 -0400 Original-Received: by mail-wr0-f175.google.com with SMTP id c5-v6so8588324wrs.10 for <31745@debbugs.gnu.org>; Fri, 29 Jun 2018 04:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=ftAdFgh3hwHLgVzT/vBeVib5o7AYFSVOI9VX/Xa+jAw=; b=Y+mYJq9tlqrzzslaGLqnIzkpKoWqyPrbwGeQIUmziLzBuoC7wtomot8zKXKvF2gvpX Kv0cl7RF8dLsvNEDb0PtpvoY23/ovDTEl7x7jCesIEb4wGzZfyHH0zoXdlZF0KlPqzWN G2x60HVD7FYZh4VzUlUYztNpea7fPRR8SYyuNRJC26vKU0EkrWY4X5vfrEmy1EbGa8RU 0JXRj1QBAw/VTnkaXyOKrANdd6kT5s92mhS8c8hz9geJit3h9qZIg/JjQlg/r2LiWSaW 04wnFW4sJ4MCSI/8G8pfZBl+TgNd8CZGLEVch9JsU/asyAvkQ2nTuJpFCpTd06SycvRM /6tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=ftAdFgh3hwHLgVzT/vBeVib5o7AYFSVOI9VX/Xa+jAw=; b=AgNL/mS98m2tK/NZJS1ervbCAn14LJYwtdOyNF0fWVGS9QrbpDYXom1Xfo6/vgEy5M Yl6NhYiWUe4GtVz64BeZUf6gAXVbAamWal6DuMsk9zt8/xH5ZhwZxJFa1pquPSKku0GE gF1DdaeT1GizJtMB8hvJ2Moohkr6jNyLiKeJob8o71aO6NKn5X1vM/5qcuyElS63f5dm d7+ADoKZz+q4wp3yaf8GriH1w8XKPcQkP+sBKAZAX6nAQK3u2oZYXqnWt8jVRzeTLnDZ VLgDAfxZnK+SbGVY3K7M2C2lbvnBKZx0RkRgODb72FmlEuxrPRtM+A7rsP0wjceyTPlk Csqw== X-Gm-Message-State: APt69E1C5ghxzlAD/HIHAE1q6kJvnQMNii1tI22pd1NuPttK6UtvYpZB Q+P+iTgLsS7zUpQf3jEegQQ= X-Google-Smtp-Source: AAOMgpdPtnYMRkI118JrqIaIStBdWC1w/EzV//xLJT5OdgMppfKUBvaAEFOdo1XXq448iVosBg20ag== X-Received: by 2002:adf:c10a:: with SMTP id r10-v6mr5258184wre.203.1530273482185; Fri, 29 Jun 2018 04:58:02 -0700 (PDT) Original-Received: from rpluim-ubuntu (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id p7-v6sm1330102wmc.0.2018.06.29.04.58.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jun 2018 04:58:00 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <5B35F0DA.108@gmx.at> (martin rudalics's message of "Fri, 29 Jun 2018 10:42:02 +0200") 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:147954 Archived-At: martin rudalics writes: >> 130x56 fits on my screen fine, so I=CA=BCm not sure that=CA=BCs what's >> happening. Once the initial frame has been created I can modify its >> size without any problems. > > Maybe it does not fit with the initial window position chosen by the > window manager. > >> That=CA=BCs not surprising to me, the issue >> is somewhere during the setup of the initial frame. > > Window managers can be more picky to make sure a new frame fits on the > screen. For an already existing frame they usually accept that it > moves off-screen. Can you position any other application's first > window off-screen? > I=CA=BCve tried eg xterm -geometry 80x36+-50+-50 but the resulting window is always fully visible. It=CA=BCs possible the window manager hasn't fully implemented support for negative offsets, it=CA=BCs somewhat obscure. >> You=CA=BCre right that the frame is not resized the way we requested, but >> it doesn=CA=BCt seem to be because GTK thinks it=CA=BCs too big, since eg >> >> src/emacs -Q --eval "(setq default-frame-alist '((left . 0) (top . 0) (w= idth . 79) (height . 35)))" >> >> can result in emacs thinking the frame is *smaller* than what's >> actually displayed, so the modeline is drawn too high, and the >> minibuffer has empty lines drawn underneath it. Screenshot: > > If you continue to work with this frame without (implicitly) > triggering a frame resize, does Emacs keep on thinking so forever? Yes. > Does the buggy behavior trigger also when you do not set the 'left' > and 'top' parameters, that is, if you purely resize the frame and not > move it at the same time? If so, we maybe should try to use > gdk_window_move_resize or whatever there is now. ISTR that I tried it > once and it seemed to work but dropped the idea later because I had > difficulties figuring out a suitable interface. src/emacs -Q --eval "(setq default-frame-alist '((width . 79) (height . 35)= ))" shows the same behaviour. > Also, does setting 'x-gtk-use-window-move' change anything? It could > conceptually, for GTK 3.18. That=CA=BCs set to t by default. Setting it to nil doesn=CA=BCt change anyt= hing. Regards Robert