There will be a day where the only bug free parts of fpc/Lazarus are those which are not Delphi compatible
I very carefully didn't (quite) say that, lest it sounded like criticism of the core team.
In actual fact I've been looking back through various code, and found comments (from myself) wingeing about how Delphi+Windows was actually better-implemented in that specific area. Hence this is very likely to be a widget set (or at least widget-set specific) area.
My earlier test where I could duplicate the problem used gtk2. Switching to gtk3... "Error while linking". SEP (sorry). Switching to qt5... oh crap.
This is a mess. If the window is foreground but the mouse is not over it releasing (not pressing) <L-shift> sets the LH window red, and even after it's released it stays red until the mouse is moved over the window. Pressing <R-shift> does exactly the same. If the mouse is over the window pressing either shift sets the LH window red, with some toggling behaviour that I can't quite fathom.
MarkMLl