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.

View in manual

Probably introduced at or before Emacs version 19.10.

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.  */);