Window management improvements