Rework determination of rectangles that are to be used as cinnamon input region