From: DJ Stauffer <emacsdev@djstauffer.com>
To: emacs-devel@gnu.org
Subject: Re: GTK interface modification
Date: Wed, 15 Aug 2018 08:45:41 -0500 [thread overview]
Message-ID: <d4aa6f2c-184d-4083-184e-7c55b07d993d@djstauffer.com> (raw)
In-Reply-To: <5B73DF30.9010803@gmx.at>
On 08/15/2018 03:07 AM, martin rudalics wrote:
> > > 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?
>
> The call where the "real selected window" is known is in xdisp.c's
> display_mode_lines as
>
> /* Select mode line face based on the real selected window. */
> display_mode_line (w, CURRENT_MODE_LINE_FACE_ID_3 (sel_w, sel_w,
> w),
> NILP (window_mode_line_format)
> ? BVAR (current_buffer, mode_line_format)
> : window_mode_line_format);
>
> and you probably want to set
>
> w->must_be_updated_p = true;
>
> as well. The routine actually changing the appearance of W's border
> will then have to check whether W has the selected appearance already
> set. If not, you have to redraw W's border and that of the previously
> 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. You will have to play around then.
>
> martin
OK, thanks again!
DJ
next prev parent reply other threads:[~2018-08-15 13:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-13 23:14 GTK interface modification DJ Stauffer
2018-08-14 8:09 ` martin rudalics
2018-08-15 6:34 ` DJ Stauffer
2018-08-15 8:07 ` martin rudalics
2018-08-15 13:45 ` DJ Stauffer [this message]
2018-08-14 8:17 ` Yuri Khan
2018-08-15 6:35 ` DJ Stauffer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d4aa6f2c-184d-4083-184e-7c55b07d993d@djstauffer.com \
--to=emacsdev@djstauffer.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.