fixed strange window behaviour in Linux