rem: XMoveWindow (gtx->priv->display, win, 0, 0); } else {  gdk_window_show (gtx->priv->fullscreen_window); gdk_window_raise (gtx->priv->fullscreen_window); }
add: XMoveWindow (gtx->priv->display, win, 0, 0);
context: gtk_xine_set_fullscreen (GtkXine * gtx, gboolean fullscreen){	static gboolean pml = FALSE;	g_return_if_fail (gtx != NULL);	g_return_if_fail (GTK_IS_XINE (gtx));	g_return_if_fail (gtx->priv->xine != NULL);	XLockDisplay (gtx->priv->display);	if (pml == FALSE)		pml = TRUE;	else		return;	if (fullscreen == gtx->priv->fullscreen_mode)	{		XUnlockDisplay (gtx->priv->display);		return;	}	gtx->priv->fullscreen_mode = fullscreen;	if (fullscreen)	{		if (gtx->priv->fullscreen_window == NULL)		{			Window win;			XEvent xev;			XSizeHints hint;			GdkWindow *parent;			hint.x = 0;			hint.y = 0;			hint.width = gdk_screen_width ();			hint.height = gdk_screen_height ();			win = XCreateSimpleWindow (gtx->priv->display,					GDK_ROOT_WINDOW (),					0, 0,					hint.width, hint.height, 1,					BLACK_PIXEL, BLACK_PIXEL);			hint.win_gravity = StaticGravity;			hint.flags = PPosition | PSize | PWinGravity;			XSetStandardProperties (gtx->priv->display, win,					DEFAULT_TITLE, DEFAULT_TITLE, None,					NULL, 0, 0);			XSetWMNormalHints (gtx->priv->display, win, &hint); 			XSelectInput (gtx->priv->display, win,					StructureNotifyMask | ExposureMask					| FocusChangeMask | ButtonPressMask					| PointerMotionMask | KeyPressMask);			/* Map window */			XMapRaised (gtx->priv->display, win);			XFlush (gtx->priv->display);			/* Wait for map */			do {				XMaskEvent (gtx->priv->display,						StructureNotifyMask, &xev);			} while (xev.type != MapNotify					|| xev.xmap.event != win);			gtx->priv->fullscreen_window =				gdk_window_foreign_new (win);			if (gtx->priv->fullscreen_window == NULL)				g_message ("FULLSCREEN NIIIIIIIIIIIIL");			/* TODO add check for full-screen from			 * fullscreen_callback			 * in terminal-window.c (profterm) */			gdk_window_set_fullscreen				(gtx->priv->fullscreen_window, TRUE);			parent = gdk_window_get_toplevel (gtx->widget.window);			gdk_window_set_transient_for				(gtx->priv->fullscreen_window,				 parent);			XMoveWindow (gtx->priv->display,					win, 0, 0);		} else {			//FIXME need to raise it !!!			gdk_window_show (gtx->priv->fullscreen_window);			gdk_window_raise (gtx->priv->fullscreen_window);		}		gtx->priv->vo_driver->gui_data_exchange			(gtx->priv->vo_driver,			 GUI_DATA_EX_DRAWABLE_CHANGED,			 (void*) GDK_WINDOW_XID (gtx->priv->fullscreen_window));		/* switch off mouse cursor */		gtk_xine_set_show_cursor (gtx, FALSE);		scrsaver_disable (gtx->priv->display);	} else {		gtx->priv->vo_driver->gui_data_exchange			(gtx->priv->vo_driver,			 GUI_DATA_EX_DRAWABLE_CHANGED,			 (void *) gtx->priv->video_window);		/* Hide the window */		gdk_window_hide (gtx->priv->fullscreen_window);		scrsaver_enable (gtx->priv->display);		gdk_window_focus (gdk_window_get_toplevel				(gtk_widget_get_parent_window				 (GTK_WIDGET (gtx))),				GDK_CURRENT_TIME);	}	pml = FALSE;	XUnlockDisplay (gtx->priv->display);}