From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!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: Thu, 16 Jan 2020 10:44:44 +0100 Message-ID: References: <2056a194.3971.16f8d4dd4c5.Coremail.tumashu@163.com> <7c344291-8161-eff1-b07b-fb764535abef@gmx.at> <877e0bd3-d21b-43a4-b5fa-c33f123a14c0@gmx.at> <9475f3ba-cfd5-c808-3647-2c395c1ee851@yandex.ru> <8f465e5f-fd61-9540-e094-31487eea60b4@gmx.at> <49dd7093-cd65-f50d-fca5-f1859fc8fdab@yandex.ru> <3b6682cc-b484-84e6-7b4d-0972f1d592b7@gmx.at> <0c6ffbc3-f2a0-9658-c23d-f2838e307163@yandex.ru> <67eb5852-2047-1e74-1c83-fb8f1767a772@gmx.at> <9157f42c-ae6b-9537-4b44-08672cf60884@gmx.at> <4fc23d82-7a6a-6011-698a-b4f9d7eb6a53@yandex.ru> <5597826b-98b3-179d-ba9a-2deb314cba44@gmx.at> <2d112f1b-ea8e-ac49-1dac-9218db32f6fc@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="42163"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Dmitry Gutov , tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 16 10:48:41 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1is1lY-000Av4-Qa for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jan 2020 10:48:40 +0100 Original-Received: from localhost ([::1]:39092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1is1lX-0006c2-LY for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jan 2020 04:48:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40115) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1is1hy-0003xR-4K for emacs-devel@gnu.org; Thu, 16 Jan 2020 04:44:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1is1hx-0001yC-2G for emacs-devel@gnu.org; Thu, 16 Jan 2020 04:44:57 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:37819) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1is1hw-0001x6-LE for emacs-devel@gnu.org; Thu, 16 Jan 2020 04:44:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1579167885; bh=KDdUBrYNG5hqKZziy0TASD/27PA50CfmushN9OYqnkM=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=LlCzBKfF6oPX8kmf5pbdkV/TyRPixWOeaohj/L+m4WINDWWHC0ene4HGd37gDKqAe 2MpjrNzl5mE0FQMqNtkdbcgGtNj/FwSMrdgTD5UjdeYBiulg0MQpNpxWEzNeeQ+SbF tAIrE7PvUbCQrdIv5yuB3TPeWw9xx16xPsTBJ4LA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([212.95.5.14]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N95e9-1jgVhq21zz-0169R2; Thu, 16 Jan 2020 10:44:45 +0100 In-Reply-To: <2d112f1b-ea8e-ac49-1dac-9218db32f6fc@yandex.ru> Content-Language: en-US X-Provags-ID: V03:K1:FHo4ADAXM5baphmKAfs1O/UKofik3qS7UxRqua5Mv4m71tlf6Dy ygf1+38wOk9v9V7fl7bM7d0cie/MT8eCk83y9mWBNqtCFbG05IDor2pzYteWwe1K1T2tRol Go6/k0ygRMg1Kor3ycAYn8wlnI68GQ2M8cbYVs+R0FHQpv5ouCfTfBJ3g8774P/t8oPQJ3Q uwb1TIZy8kbRmEcM7u3Qw== X-UI-Out-Filterresults: notjunk:1;V03:K0:vvwiZE4yjXc=:gAklPNdPVysrIZUCsW+6cS Uhxn5PQkMX5gCTh+btGAgihKKPM9Xw+todxXQyJObMkSwGvgwMLHABXJ/0+OF+FtThCXoxYs0 0BS8hSxjYakCBSmxpY378ppJVa0VnZ+05+fiex4BV89mWCXMiL+cNf/NUWE4zo+2NFcIDNIZY 8d8E78cVijj0jBhKfniI8eI8M07SSLqshzonTUi259BNXFPGxJl1ONuPxi4I5MsyfZjlwQJgu SlQZau+0/r5oxaMQCIteyL5t7FtJai2fu9vC4yIJnS4FQRw6d9MV7yCFwA71qWbaSfUgcTWOn PZo8///mFCuejL+HG2FJcL/xHFmUmGRhPoKmGxUUT7pTYS4uEKGs780Ta32zd7HvgP53YV+Ce j6M/6ZGBEBvOetRQvQVdlYaJ5uJzPHjGBnW7/UF+k3jeXhogKMamHYTnpWUyDA+MKB3H+vnvx NqG3UsDcjySrzWZAhBh/Jgc2uhkjObcC6AiruH9GBY+MWa67k05lOaUTC+QXM4JIwhRLg3mrR MYxABfC5QI4PH2aWRli62cd0Si0bjnFPSXG+XgcbLmOniV8T56h6SZsD95rf3xsDEVDA0oHuY tKAHSNYvm7xy4g/3oYDkEieu2yNAMFfT3Zu474INz/N3O+Ipqlsd9GcUd8KCtiMHCjIZEYV7W Efy8qogsNVJqkVj2qv78lqWgyiNlKo1kQERCsK+bCslzZCWPu/TEKr37q7m0MbI+ptaWkxxrm uJ/74h3Z6q+uEMiV0Fq8iI+3/zWBqVEkJxvj2krfLIEBBkdpupuOWiRc4l+bEXI07QZYoNs7 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 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.io gmane.emacs.devel:244296 Archived-At: >> I'm confused now. Does (2) really work in the sense that you can resize >> the frame by dragging its internal border? > > Ah! No, sorry. > > I can drag it around no problem. As for resizing, it doesn't work. The cursor shows the appropriate shapes when near the window borders, but dragging it by the border can only move it (i.e. dragging the top or left border moves the child frame, but does not resize it). > > Dragging it by the border is not as snappy as dragging it by the mode-line, BTW. Dragging the frame by dragging the border shouldn't have happened in the first place. Please try again with: (custom-set-faces '(internal-border ((t (:background "red"))))) (defun open-test (buffer) (display-buffer-in-child-frame buffer '((child-frame-parameters . ((width . 40) (height . 10) (top . 50) (left . 50) (minibuffer . nil) (border-width . 0) (internal-border-width . 10) (drag-internal-border . t) (drag-with-mode-line . t) ))))) (setq-local test-buffer (get-buffer-create "*test child-frame*")) (setq-local test-frame (window-frame (open-test test-buffer))) martin