add: gtk_signal_connect (GTK_OBJECT(window), "focus_out_event", GTK_SIGNAL_FUNC (show_cursor_cb), NULL);
context: static void setup_window (){	GtkWidget *label, *hbox;	GdkPixmap *cursor_dot_pm;	window = gnome_app_new ("gnibbles", "GNOME Nibbles");	gtk_window_set_policy (GTK_WINDOW (window), FALSE, FALSE, TRUE);	gtk_widget_realize (window);	gtk_signal_connect (GTK_OBJECT (window), "delete_event",			GTK_SIGNAL_FUNC (quit_cb), NULL);	gtk_widget_push_visual (gdk_imlib_get_visual ());	gtk_widget_push_colormap (gdk_imlib_get_colormap ());	drawing_area = gtk_drawing_area_new ();	cursor_dot_pm = gdk_pixmap_create_from_data(		window->window, "\0", 1, 1, 1,		&drawing_area->style->fg[GTK_STATE_ACTIVE],		&drawing_area->style->bg[GTK_STATE_ACTIVE]);	pointers.invisible = gdk_cursor_new_from_pixmap (		cursor_dot_pm, cursor_dot_pm,		&drawing_area->style->fg[GTK_STATE_ACTIVE],		&drawing_area->style->bg[GTK_STATE_ACTIVE], 0, 0);	gtk_widget_pop_colormap ();	gtk_widget_pop_visual ();	gnome_app_set_contents (GNOME_APP (window), drawing_area);	gtk_signal_connect (GTK_OBJECT (drawing_area), "configure_event",			GTK_SIGNAL_FUNC (configure_event_cb), NULL);	gtk_signal_connect (GTK_OBJECT(drawing_area), "motion_notify_event",			GTK_SIGNAL_FUNC (show_cursor_cb), NULL);	gtk_drawing_area_size (GTK_DRAWING_AREA (drawing_area),			BOARDWIDTH*properties->tilesize, BOARDHEIGHT*properties->tilesize);	gtk_signal_connect (GTK_OBJECT (drawing_area), "expose_event",			GTK_SIGNAL_FUNC (expose_event_cb), NULL);	gtk_widget_set_events (drawing_area, GDK_BUTTON_PRESS_MASK |			GDK_EXPOSURE_MASK | GDK_POINTER_MOTION_MASK);	gtk_widget_show (drawing_area);	gnome_app_create_menus (GNOME_APP (window), main_menu);	appbar = gnome_appbar_new (FALSE, TRUE, GNOME_PREFERENCES_USER);	gnome_app_set_statusbar (GNOME_APP (window), appbar);	gnome_app_install_menu_hints (GNOME_APP (window), main_menu);	scoreboard = gnibbles_scoreboard_new (appbar);}