Variable: highlight-nonselected-windows
highlight-nonselected-windows is a customizable variable defined in
xdisp.c.
Value
nil
Documentation
Non-nil means highlight active region even in nonselected windows.
When nil (the default), the active region is only highlighted when the window is selected.
Probably introduced at or before Emacs version 19.20.
Source Code
// Defined in /usr/src/emacs/src/xdisp.c
DEFVAR_BOOL ("highlight-nonselected-windows", highlight_nonselected_windows,
doc: /* Non-nil means highlight active region even in nonselected windows.
When nil (the default), the active region is only highlighted when
the window is selected. */);