Cardiff 0 Wigan Athletic 1
The Bluebirds had picked up markedly under new boss Neil Warnock, but they couldn’t break down a resolute Latics side being guided by the steady hands of Graham Barrow following Gary Caldwell’s sacking on Tuesday.
Adam Bogdan produced three superb saves, two in the first half to deny Anthony Pilkington and one in the second stanza to thwart Aron Gunnarsson, as Latics had to hang on for long periods.
But with the home side running out of ideas, they were caught on the break with only three minutes remaining.
Craig Davies - on for Will Grigg - supplied David Perkins, whose cross was stabbed home at the far post by Gomez, who had been barracked by the home supporters for his previous Swansea ties.
Cardiff had a gilt-edged opportunity to level in stoppage-time, only for Sol Bamba to blast miles over the bar from 12 yards.
They went closer still when Joe Bennett fired goalwards with the penultimate kick of the game, only for skipper Stephen Warnock to hack off the line to safeguard a precious three points.