server: Fix event delivery when the pointer is outside the focus window

The child window is null in this case...
server: Fix isWindowDescentOf usage

Why did I name this function so poorly