Remove maximize / minimize from layout loghook.