update EWMH state when changing layers