From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= Newsgroups: gmane.emacs.devel Subject: Creating a "borderless" frame (without WM chrome) (was Re: Could x-show-tip be reimplemented in Elisp? How does one create borderless frames from Elisp?) Date: Tue, 16 Feb 2016 15:12:55 -0500 Message-ID: <56C382C7.8080306@gmail.com> References: <56BDF3DE.2050704@gmail.com> <56BEA48F.9020400@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RssgWKTN8bgWg6H1eSetxQDnSHDTkTMun" X-Trace: ger.gmane.org 1455653615 9367 80.91.229.3 (16 Feb 2016 20:13:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 20:13:35 +0000 (UTC) Cc: Emacs developers To: Chris Feng Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 16 21:13:27 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aVlzy-0006AD-OU for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2016 21:13:26 +0100 Original-Received: from localhost ([::1]:50343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVlzx-00020C-Tr for ged-emacs-devel@m.gmane.org; Tue, 16 Feb 2016 15:13:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVlzb-0001zb-6g for emacs-devel@gnu.org; Tue, 16 Feb 2016 15:13:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVlzX-0007dJ-34 for emacs-devel@gnu.org; Tue, 16 Feb 2016 15:13:03 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.130]:59262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVlzW-0007cw-Oh for emacs-devel@gnu.org; Tue, 16 Feb 2016 15:12:58 -0500 Original-Received: from [18.189.2.87] ([18.189.2.87]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0M2U21-1Zfjlk1oX7-00sP68; Tue, 16 Feb 2016 21:12:57 +0100 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: X-Provags-ID: V03:K0:io25nTdtZ4SJq31cVb7yq+U4Vp3vFdnlHgugSQVctLkjpdZ1a1T Y3+pwTN8PiRpmroJp1CgcssA1YR7XfnnnYV6i8UdMjOL0bBfNvquIruvUWGUrObL2Tf6+5V EsDx63jNHUHl9N0I7vqmGvySP6O6QXXkjPsmA6zxY0t9b1Xw2/UwiLta4hDTh+wEaO9NRWf 6WnSiDQ+gEjJb2mxuaJOQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:yG59J+rWLeE=:fVlQ9zi8Zwh8M1CLRaDwwr 9iaLvmRrQHq6eQcO0RdGZ8CH58TqyMGQdHY8XKjvW4BGur201b/cjgp1tZfsW2U4orat1oTOa I9jA3NRlfOrvIS4Zb04ygB41WiAkumAqQLyUwQG1Jk09662aMok3+JTbp3x65feA7HERjVY3w u3T5vFy+44r1siqe0iWQcvSxTQq6yht2dCzsTuDP5i3HartVIqo5vEtUSANc1uF5fZmGgLKBu +25xCRmIgZEFWRBWK2X67Yv/MW+MMiH3k+sO41SCVZyaE6G6cYepWYSOFBS5tp6vRjdHy0EC1 2hBov30Jxp1DZQ1yCJFup0IXKWXailj8RpILT9AVw/6o2CMuOBQclZKyAloA8ok0yofuQshlZ Lfhu8DMpy1KZ5+353NT5LSCo4dozRIdXkHiAaI/BqujHVmTFUmwqW8jz4VpraJ/b4bMJ0CWH8 RY9TQBEM6u/dO+V0nrs14apu4mjFXV3S+mxzuYXoKRbcWA8Pi0UynZ33O/u6RnOfjAbZtdkna X7YC+pVaPKZBgx+CMz+YAeoNkcTd26mdpNapgJS3uaMq4WzfDUz3frYofz/d6gdDjbXe3hBHK lpDehBfslgkuIf9gT+5ixbRTCkwrIqmtBly6tLmmMD3aUqKeEVCN+GvveChnT7F0BRjCy5Un1 W6owPgW+udPiIcaBd7mwDobgONdHRJDbujKSBRYKFzEDfFu2s+KTLTluk/IbIVkyHQCY= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.130 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200056 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RssgWKTN8bgWg6H1eSetxQDnSHDTkTMun Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/12/2016 10:57 PM, Chris Feng wrote: >> It doesn't seem that there's any Elisp level facility to customize >> this flag, unfortunately. This means in particular that unless we >> patch the C sources, there won't be a cross platform solution to >> this issue, right? >=20 > I'm afraid so. >=20 >> I've started thinking at what a patch would look like; presumably >> the idea would be to expose the functionality of x_create_tip_frame >> to Elisp, moving parts of x_show_tip into that function. I could >> try coming up with a patch, if this is deemed useful. >>=20 >> There's one thing that confuses me, however: some code related to >> tooltips seems to be duplicated between xfns.c, w32fns.c, etc; are >> these files auto-generated? Or should I prepare a patch that >> adjusts all copies of that code? >=20 > Those files contain implementations for different platforms. You > need to patch all of them. >=20 > The override-redirect flag is X-specific actually. Thanks for clarifying. This makes sense, of course :) Scaling back on the original intent, then, could we expose to Lisp a way = to create a chrome-less frame, presumably in just the same way as the too= ltip code does it? Something like `remove_frame_chrome(frame *f)`, which = one would call before making a frame visible. >> This is really neat, actually :) Thanks a lot! It works great on my >> machine. I'd still like to find a cross-platform solution, though; >> company isn't X-specific. Am I right to think that this will only >> work on GNU/Linux? >=20 > Yes, and perhaps other platforms running X11. Thanks. --RssgWKTN8bgWg6H1eSetxQDnSHDTkTMun Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWw4LIAAoJEPqg+cTm90wjHE0P/jsXNeHs9sMfqTXKyvD6nV3e p81HZNPRxSgQ8OSWNrgATxsH+cjMzT5+Pxv98htY5PXbzcjUhy5l1T59pVPO7PI5 3KH0AnmQGNq/dVjeq/zfQdMshXNLe/Dd5AbZOUJYq6idbeq3TEU0f3VsjXkl3pAR KMDfb/nNr2eqnnkjp0BdlPPml1ZbG0g6JZilRtXdtvUIDekgh2KniQvXfmjK9iG/ gtTlMGKQhp02JyAV5Gjy/eW6+z2XUYHMUgvKh8LaZt3tUfzhufbJZvvCcl44HAoA eQCbilwgF5IUs6vxqRH0N0ZdbmeHAipWHivekgUwCZfkVw6o7bw6Z26eoYEMjSae YL6HDWRseyDBji6MBEZsAOXpG5h5LcZosGuUm+WISrQ9oEMvFSTfUTtBY4JjQBcx UzJ93owt8bpl+cZ25xWjCTN6W6eqV9xYCi9g9tBYKrtib+E8LqXoJqQBr41dqr9A amLfPzKIAMyzE1qW9LDUYPK5qOVjNWToSKLb4X+cOWT3K5M/YjCG0+YUVK3rnsjd y2V/EqjuP53iIE5qAGkI6ddOapoWkbXzeu4Nq87GipUw7YxYcpkZEUFy4214sNdU vdudeVH1ZtxR+CVzZPgbqp4P3fQm/yrKc4U0H+mPIWHtEeggfmtYqdcXHBcwd6cu 5C+bZn77ZLqBOXuwoGEM =kDc7 -----END PGP SIGNATURE----- --RssgWKTN8bgWg6H1eSetxQDnSHDTkTMun--