If a gentile holds an open bottle of wine and shakes it, then the wine becomes forbidden, even though the gentile did not lift the bottle off the table or directly touch the wine. However, if he moved or even lifted the bottle without causing the wine to shake, the wine is permissible.
For example, if a non-Jewish housekeeper moves a bottle of wine to another place on the table to make room, the wine is still permissible. It is only if the gentile shakes the wine that it becomes forbidden. Needless to say, if a gentile merely touches the bottle, without moving it at all, the wine is permissible.
By the same token, if the non-Jew carries an open bottle of wine, and a Jew walks behind him and sees that the non-Jew does not shake the bottle, the wine is permissible. Chachamim forbade wine handled by a gentile only if it was handled in a way that causes the wine to jostle. If a non-Jew handles a bottle of wine that is closed and sealed, then the wine is permissible even if it was shaken by the non-Jew.