restrict reparenting to specific main windows (fix #14)