Track the GUI state in addition to mtime