A 10-month-old baby had his throat slashed by his own father, a court has been told.
Hassan suffered a fatal knife wound to the neck
Shahajan Kabir, 40, of Carlisle, is accused of killing Hassan Martin in Greggs bakery in the town last October.
The child's mother, Lorna Martin, 21, and grandmother, Pauline Martin, 40, were also injured in the attack.
Kabir, appearing at Carlisle Crown Court, denies murdering the child and also denies the unlawful wounding of the two women.
Mukhtar Hussain, QC, prosecuting, said Kabir was "sniggering and smirking" having pushed his former partner to the floor before attacking Hassan.
Mr Hussain said: "The defendant then placed the knife at the left side of Hassan's throat looking proud and smug and into his eyes."
Miss Martin, of Carlisle, said Kabir had a knife hidden in a plastic bag as he entered the bakery.
She said she tried to get Hassan away from Kabir and a struggle followed.
The court heard Kabir entered the UK illegally in 1996 seeking political asylum having left Bangladesh.
Shahajan Kabir (centre) at an earlier court hearing in Carlisle
Mr Hussain said that Kabir settled in Carlisle and while working as a chef at an Indian takeaway had met Miss Martin.
He had been arrested by the immigration service and was facing deportation from the UK.
Miss Martin and Kabir split up, but Kabir still had access to Hassan although he only saw him once a week, the court heard.
Access was then stopped in September 2003 when Kabir attacked the house where Miss Martin lived with her mother and Hassan.
Mr Hussain told the court that on 14 October, 2003, Kabir tracked down Hassan, his mother and grandmother in Carlisle where he tried to snatch his son.
A week later he followed them into Greggs where he carried out the attack.
The case continues.