Thank you, Ath. Your advice works.
But it turned out that everything was not as good as it seemed to me earlier.
On my system, a "red solid rectangle" can be obtained by selecting the "Selected Window" capture mode and selecting the entire Desktop as the window.
In all other modes, a red rectangle does not appear.