Slightly better behavior in response to issue #48 (transparency of windows dependent on layer).