Rules for floating windows