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 08:45:41 -0500 Message-ID: References: <0520ad1f-1b7a-dd80-5030-00c07754d9c4@djstauffer.com> <5B728E51.3070708@gmx.at> <70782a8a-8e7c-4f4b-819c-7996ace07bca@djstauffer.com> <5B73DF30.9010803@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 1534340639 541 195.159.176.226 (15 Aug 2018 13:43:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2018 13:43:59 +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 15:43:55 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 1fpw5a-0008TP-6l for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 15:43:54 +0200 Original-Received: from localhost ([::1]:49726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpw7g-00009K-DG for ged-emacs-devel@m.gmane.org; Wed, 15 Aug 2018 09:46:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpw7T-000077-Mg for emacs-devel@gnu.org; Wed, 15 Aug 2018 09:45:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpw7N-0000JG-62 for emacs-devel@gnu.org; Wed, 15 Aug 2018 09:45:51 -0400 Original-Received: from mail.djstauffer.com ([50.116.22.224]:55636) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fpw7M-0000Go-Qo for emacs-devel@gnu.org; Wed, 15 Aug 2018 09:45:45 -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 071FA4FB23 for ; Wed, 15 Aug 2018 08:45:41 -0500 (CDT) In-Reply-To: <5B73DF30.9010803@gmx.at> Content-Language: en-US X-djstauffer-com-MailScanner-Information: Please contact the ISP for more information X-djstauffer-com-MailScanner-ID: 071FA4FB23.A6266 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] [fuzzy] 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:228556 Archived-At: On 08/15/2018 03:07 AM, martin rudalics wrote: > > > And finally you have to actually redraw the border when a window ge= ts > >=C2=A0 > (de-)selected, the appropriate moments given by the mode-line= code. > > > > ^ Is this also in xdisp.c, or is that code elsewhere? > > The call where the "real selected window" is known is in xdisp.c's > display_mode_lines as > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /* Select mode line face based on the re= al selected window. */ > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 display_mode_line (w, CURRENT_MODE_LINE_= FACE_ID_3 (sel_w, sel_w,=20 > w), > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= NILP (window_mode_line_format) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ? BVAR (current_buffer, mode_line_format) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= : window_mode_line_format); > > and you probably want to set > > =C2=A0=C2=A0=C2=A0 w->must_be_updated_p =3D true; > > as well.=C2=A0 The routine actually changing the appearance of W's bord= er > will then have to check whether W has the selected appearance already > set.=C2=A0 If not, you have to redraw W's border and that of the previo= usly > selected window of W's frame accordingly. > > I'm not sure where to actually draw the border on glass though. You > can look at where window dividers are drawn but these are merely > statically bound to windows and do not depend on whether a window is > actually selected.=C2=A0 You will have to play around then. > > martin OK, thanks again! DJ