Fix an ordering issue in event destruction

gdk_event_get_display accesses event->any.window, so don't
free that window first thing.
csd: Improve appearance inside glade

glade turns windows into non-toplevels, so we can easily recognize
that situation and avoid adding a humongous shadow area.