add: XSetInputFocus (gtx->priv->display, GDK_WINDOW_XWINDOW (gdk_window_get_toplevel (gtk_widget_get_parent_window (GTK_WIDGET (gtx)))), RevertToNone, CurrentTime);
context: xine_thread (void *gtx_gen){	GtkXine *gtx = (GtkXine *) gtx_gen;	XEvent event;	gtx->priv->init_finished = TRUE;	while (1)	{		XNextEvent (gtx->priv->display, &event);		switch (event.type)		{		case Expose:			if (event.xexpose.count != 0)				break;			gtx->priv->vo_driver->gui_data_exchange				(gtx->priv->vo_driver,				 GUI_DATA_EX_EXPOSE_EVENT, &event);			break;		case FocusIn:			/* happens only in fullscreen mode			 * wait for the window to get visible first			 * to avoid BadMatch problems *//*			while (x_window_is_visible (gtx->priv->display,						gtx->priv->toplevel) == FALSE)				usleep(5000);*//*			XSetInputFocus (gtx->priv->display,					gtx->priv->toplevel, RevertToNone,					CurrentTime);*/			break;		}		if (event.type == gtx->priv->completion_event)		{			gtx->priv->vo_driver->gui_data_exchange				(gtx->priv->vo_driver,				 GUI_DATA_EX_COMPLETION_EVENT, &event);		}	}	pthread_exit (NULL);	return NULL;}