Move window urgency handling entirely into x.c