Better detection of floating windows