handle window decoration close action, fix minor issue with xevent reordering