plugins/backgroundcontrast,blur: ensure the effect is only applied behind the window
When a window is translated and/or scaled, the effect must be strictly behind the window and never beyond it, as that is very noticeable.
BUG: 469625 (cherry picked from commit cd94cdaf)