This introduces a new type of 'window' event sent wit change:mark whenever a mark on a window changes. fixes #2501