From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Emacs's set-frame-size can not work well with gnome-shell? Date: Sat, 11 Jan 2020 08:50:19 +0100 Message-ID: References: <2056a194.3971.16f8d4dd4c5.Coremail.tumashu@163.com> <7c344291-8161-eff1-b07b-fb764535abef@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="198702"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "emacs-devel@gnu.org" To: tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 11 08:54:59 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqBaF-000T2x-3U for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 08:53:23 +0100 Original-Received: from localhost ([::1]:55056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqBaD-0006NB-DD for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 02:53:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39617) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqBXR-0005qA-M0 for emacs-devel@gnu.org; Sat, 11 Jan 2020 02:50:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqBXQ-0005Gu-HI for emacs-devel@gnu.org; Sat, 11 Jan 2020 02:50:29 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:44243) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqBXQ-000580-1z for emacs-devel@gnu.org; Sat, 11 Jan 2020 02:50:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1578729019; bh=huyCgQ5TZtdfWZwPbB2Mp+9qNFf2HdtEtwdJC9E/tJk=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=TulkPxemI72wVQ0bMkfpaH0KP8KCGYgltboozHVsv1u3u4Zq4XvYyMWnHTQGW5vXE yRjnn/4lkd411l+AM206tfeOqxiA6KXLqlyJ73PcirsTSm8loMaNw7hbcnjV2W/Ut7 J/QKxQzvYVwKQEyiYmP/oZ/sIg4liYgkLDt1nyAE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.69]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgeoI-1jJzVP1veG-00h3W3; Sat, 11 Jan 2020 08:50:19 +0100 In-Reply-To: Content-Language: de-AT X-Provags-ID: V03:K1:/EKI0ztlnyvHCJXFCF+8byMurmZuKZiYD0aV+euwq1MU9pNb+vk 7Exwi6rZ9HKEjITB+cMVik9R7WDdxJGO3EIhM6+EZ81miqcP0xg69mv3zirgsssl4/WWh1d ff0/JfI0wY8sT3dxfJuRD2WCpuZdzO62rJ1I3kZZBZPsCwHuRGq0WSHi0BTadPS06Q+kfgg kgATlTzrIC0UjD6OlRUMw== X-UI-Out-Filterresults: notjunk:1;V03:K0:mtf5d92miBk=:gwMkbOWE3XNZ5a/NCC5nUa 3NJ0y7zhdYtd/tv1C2PI6RvvrpiPFJr8dRstKN0juQ7gH3EIeDDL6da8HwSZjQ0+6R8YVde6S UQIyZC2SH96uPs8pYePSWn7wkNKS76o0TckyHz/VU97d8O0ZvDSJOpT9g3jtQSUTSEXKYPPT5 8NCeKY9hsPxDH3tRHHqHEEXzUKIb4l/k1ObT1xcWA8+D3z45YZ2WR0dfWQ3sTXF4OFKTS2sje yDMpSnrJ+UG7x2cammW1Ad+bVjh5BoAVJ3pXjH+0gFY0NVb9HjGb8iFu7SY4gVUg+xKclDuLS DA0sYTeTOAWORPq4+zlD6JOkxM5tM4Ohv+GdwCJSfviwlUlWpr+N5xfitFaJwiWSOsEeNLy62 Czje/8cY4wccrwf7I/4aeriM3DvFpe7etqnCjCacOBcCTW0YxMrZCjY8RWdCNlakqO1XnDm/9 NN0i4Y0E2cxSQR3cFnEGgqoqr0YJML4+hSP7/6/lQVEUZBm2StmIpjCXc0TuK9OscuLUWilh2 GQ7s+0ncM4omq1FHht+H6Het+P88fQLKB4h58MGWMK+hr2p9GHo6VOQMLbIWsb/DcnNAGjlda ciX9jFdjbIDBXrTsz8USwT5r1xo7NsUcRTuIYbHgt+NSuP1S9Xt7KMXIxi2PO2qVDs6Pb0epA snDiJMlq+q9Ecoce9yW8lS479m34yl6rHjQCaa7exuZLICGrtDQnOSceRDINvKhDOowwYemVa CaKV6gCQWzlsuPC0IDey3mT92LXfMHeEn54VT8DYvjNQ+JvdpMMsqymlgN1vLHzKp+jCIjsr X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244184 Archived-At: > > (defun open-test (buffer) > > (display-buffer-in-child-frame > > buffer '((child-frame-parameters > > . ((width . 40) > > (height . 10) > > (top . 50) > > (left . 50) > > ))))) > > > > (defun resize-test (frame) > > (set-frame-height frame 20)) > > > > (setq-local test-buffer (get-buffer-create "test child-frame")) > > (setq-local test-frame (window-frame (open-test test-buffer))) > > > > (resize-test test-frame) [...] > Both, 'display-buffer-in-child-frame' and 'set-frame-height', should > be written in a way that the child frame surely fits into its parent. > If you don't, the window manager might do strange things. > > Sorry, i do not understand this, more detail or an example=EF=BC=9F I meant that resizing the child frame from 10 to 20 lines with the given (50, 50) position might make edges of the child frame exceed the edges of its parent and the window manager might not like that. In particular, a program like GNOME-shell that, as we've seen in Bug#38452, seems to have its own interpretation of coordinates (I have no idea what GNOME-shell is and does). > Also, I would disable all decorations that are not strictly needed. > For example, with a GTK build using your parameters I get a tool bar > on the child frame as soon as I type some character into it (which > might be an Emacs bug in one or the other way). That tool bar is > truncated and GTK may not behave well with truncated tool bars. See > section 29.14 of the Elisp manual for what better not to do on child > frames. > > i think it is not toolbar's problem=EF=BC=8Cposframe use childframe wi= thout toolbar, has resize problem too, Is it resizing only or moving the frame too? > i think it may be gnome-shell problem, for other wm has no this proble= m Maybe we should contact their developers. Here, moving and sizing child frames seems noticeably smoother with my Windows builds than with my Debian builds. martin