From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: DJ Stauffer Newsgroups: gmane.emacs.devel Subject: Re: GTK interface modification Date: Wed, 15 Aug 2018 01:34:22 -0500 Message-ID: <70782a8a-8e7c-4f4b-819c-7996ace07bca@djstauffer.com> References: <0520ad1f-1b7a-dd80-5030-00c07754d9c4@djstauffer.com> <5B728E51.3070708@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1534314753 5418 195.159.176.226 (15 Aug 2018 06:32:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2018 06:32:33 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 15 08:32:29 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fppM1-0001Do-HC for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 08:32:25 +0200 Original-Received: from localhost ([::1]:47549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fppO8-00067o-5K for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 02:34:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fppO2-00067g-D7 for emacs-devel@gnu.org; Wed, 15 Aug 2018 02:34:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fppNy-0004Bs-Sf for emacs-devel@gnu.org; Wed, 15 Aug 2018 02:34:30 -0400 Original-Received: from mail.djstauffer.com ([50.116.22.224]:48102) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fppNy-0004Aw-Da for emacs-devel@gnu.org; Wed, 15 Aug 2018 02:34:26 -0400 Original-Received: from [10.7.0.61] (unknown [207.5.127.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: buysell@djstauffer.com) by mail.djstauffer.com (Postfix) with ESMTPSA id A02274FB23 for ; Wed, 15 Aug 2018 01:34:23 -0500 (CDT) In-Reply-To: <5B728E51.3070708@gmx.at> Content-Language: en-US X-djstauffer-com-MailScanner-Information: Please contact the ISP for more information X-djstauffer-com-MailScanner-ID: A02274FB23.A595A X-djstauffer-com-MailScanner: Found to be clean X-djstauffer-com-MailScanner-From: emacsdev@djstauffer.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 50.116.22.224 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:228545 Archived-At: On 08/14/2018 03:09 AM, martin rudalics wrote: > > What I'd like to do is put a one or two pixel border (of whatever > > color I configure, naturally) around the outer edge of the window, > > to indicate that the window is selected. > > It won't be easy.=C2=A0 First you will have to decide whether that bor= der > should go away when the window is deselected or you just want to > change its appearance.=C2=A0 I'd choose the latter because you only ha= ve to > redraw the border when a window gets (de-)selected and not the rest of > the window. =C2=A0^ Yeah, that's kind of how I figured it would work. > > Then you have to make sure that the position and size of the window's > text area are calculated correctly.=C2=A0 Hence window_text_bottom_y a= nd > the window_box functions in xdisp.c have to be modified accordingly. > ^ Yeah I figured that I'd be modifying xdisp.c -- I've done a bit of=20 that in the past when modifying someone else's patch years ago. > And finally you have to actually redraw the border when a window gets > (de-)selected, the appropriate moments given by the mode-line code. ^ Is this also in xdisp.c, or is that code elsewhere? > > BTW, there's no sense to make this GTK specific.=C2=A0 Drawing windows= is > handled by Emacs itself with some toolkit support for the scroll bars. ^ I was trying to specify that I wanted something to work in the=20 graphical version of emacs (and wasn't worried about the terminal=20 version, for obvious reasons ) -- since I primarily use the graphical=20 version.=C2=A0 I probably should have worded that differently, but the GT= K=20 version is the only one I ever use, so that's what pops in my head when=20 thinking of the graphical version. Thanks for the help.