This melody first appeared in a manuscript copybook from 1780 to 1804 that was written by John Fife, a fiddler who was possibly from Perthshire, Scotland. He traveled at sea during the time in which he worked on this copybook, so the tune may also have originated from another area. Someone once communicated to me that the tune was about the 1917 Halifax explosion, although it clearly very much predates that event and I cannot now find any reference for this claim.
Ref: https://tunearch.org/wiki/Annotation:Smash_the_Windows_(1)
Ref: https://thesession.org/tunes/101
Ref: https://en.wikipedia.org/wiki/Halifax_Explosion
: | D | DA | GD | EmA | |
D | DA | GA | D | : | |
D | D | A | A | ||
D | D | A | D | ||
D | D | A | A | ||
DEm | DG | DA | D |