Repairing the lock. The frame and glass are usually fine; only the mechanism has failed, and replacing that is far cheaper.