Further ICCCM compliance.

SmallWM now sends the WM_DELETE_WINDOW message rather than just closing
the window itself - this prevents many programs, like Firefox, from
crashing.

(The change to event.c was a change made by the reformatting script)