Set the grab cursor in the right thread
Don't advertize a window multiple times to the shell client