Fix use of xcb in testing window script

So apparently I'm not good at xcb...

Properly call `ChangeProperty` for a single atom, and properly check for the WM_DELETE_WINDOW atom in a WM_PROTOCOL event.