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 09:03:52 +0100 Message-ID: <9157f42c-ae6b-9537-4b44-08672cf60884@gmx.at> 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> 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="130646"; 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 09:07:30 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 1is0Bd-000Xib-Su for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jan 2020 09:07:29 +0100 Original-Received: from localhost ([::1]:38024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1is0Bc-00041e-K3 for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Jan 2020 03:07:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54251) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1is08P-0007YX-1q for emacs-devel@gnu.org; Thu, 16 Jan 2020 03:04:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1is08L-00069H-Ku for emacs-devel@gnu.org; Thu, 16 Jan 2020 03:04:08 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:37301) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1is08L-00065z-6O for emacs-devel@gnu.org; Thu, 16 Jan 2020 03:04:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1579161833; bh=ikeo+5pcbgWUGNUAQeuw6S09GQZOwnzr9//kTfjKYRQ=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=AWl2TlhXSvCOkns9+zC+VWVZaCpauCXbYNtxzibG2Aa9u5PMPOdk2F1JG0MgzJlFR 1ZUJzhofxxQE+vQS9KXwxa+Nnl9F0KZ+0zDhk+f/G9xPc5We77sAqtAO1ApbPmGKJz hNg3opI7yRbnjSJlskUBVqaKJFRyK/ri5x5GwVbc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.6]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MA7GM-1ilymB1O7W-00Bg3p; Thu, 16 Jan 2020 09:03:53 +0100 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:+t6wJ6Uh0Gi0lrCbc3RwsUQcKta+2lTnBUF9R5Txs8Mrf1JPDrh e9yRH2XGkx445TrewEPsj6jv8LSEGKF1hkgCjLAMyVVqXnzOOTejNYBIcJL51R4GlKgbUcy 0sqLu3TZd5ul6Krzbm/k3E5dQiL+eGcCxrQX290nYS/IQdPcJD/9aphKki/K5tBWIIpBKy1 Py6JsidKKopGrf25D1EDQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:G5BhlX6YhMY=:aZg/lL87QYYVED34rJ/Kyz 3wUKqb9tFf/VL82jHd6hM0wUBav/kMRbGixNycMN3RPK9OfLGg8xPY/s4G0O2s+O/lHkkrYcm ESHRjspkLjiM520kh47FqS3eyooDT0dLG7jMQpIKsCZ9719DXLGV8qDtTeR9o3yhcHHfswQOI W8PJ+4HVOJmaqz+gPZAbnVdw6Uq0DKxbceJJb+6jlqfHtW32Tbqrk7a1143tOoXMuowknnv3x 5JN8ZrNRJ3oEb7MQqk66nPMbcSaS6/1nHWBiLb56f/FEovsEWotoLitfD+Rvw3hUJs9UR32GJ yK+cbveRYztFIMX1/6GNcdy4n5eIeF+rK9Eajl2z1R5/iuh72AARxNhxy6pioAYwjaXhFTFJT VOqRVSSxAyGtOSZQ0I6B96GOI0VD51X3BiujdnyuKT6XqOPIkrpmtnbwvoIXjbYiQznmhjFSg RLxIxub5LYHg2Psl4NsfcOaQPPBV7jyb4DjLyZJnxp7eNvaRMaARqa22ksrjaifoOBnkKBeU+ G76Y6jA7smdZDTmhETn8UIsy4Kve/Q47oGgVyVU9k1kZ/j53etDu1zwm2y7MvO+KsJvvTeEuD ZwtpXdSvypLtIwtqkbhxqYN8xX3BsH2AoUOLL/FNPrM7mhxiWeKpI63FbnhlKOT3x9HXTLm+J YLwMA4NCyhT0Qv8ggRm1ufmztua+RyiCjLdNXFghkvlkqsX2n3BkEOU7EkgabknbUTQh14Y0S atuG7qC+2VH/VWZbD+88ZueUTQkQL+wrAU8thkw6N9nNZNpDurpV+MzjMCkmYEYFjV3VtANZ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 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:244290 Archived-At: >> Can you move around 'test-frame' by mouse-dragging its mode line? > > I can't make it work at all, neither in the child frame, nor in any normal frame, independent of how the frame parameter was set. Sorry, it works only for minibuffer-less (or minibuffer-only) child frames. The following snippet should work: (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) (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))) This should allow to (1) drag the frame around with mouse-1 down on the mode line and (2) draw a 10 pixel wide red internal border (color visible only after a redisplay, maybe) I can use here to resize the frame with mouse-1 (Emacs resizing natively). Both work quite snappy here with an optimized build running under Xfce on an old-stable Debian. Feedback from other (not necessarily company-) users welcome. martin