I can't smell my neighbor's farts from inside my house.
Cigarette or weed smoke, though, is very noticeable and it tends to linger. To the point that I avoid opening certain windows because someone 30ft from it likes to smoke on his balcony.
my manager from Atlassian used to fart a lot, standing by his desk. He even had no hesitation, it wasn't once or twice. I was wondering why nobody was willing to sit next to him when I just joined. I've learnt it the hard way. He moved now to Australia fortunately!