Take another look at the sentence:
The comma between lecture and but is necessary. Latoya tried to concentrate on Dr. Lemon's dull art history lecture is a main clause. The darkened classroom and endless slide show soon had her dozing in her seat is another main clause. Connecting two main clauses with a comma and a coordinating conjunction like but is a perfectly legal move in writing.