add: if (scr->priv->keycode2 == 0) { scr->priv->keycode2 = XKeysymToKeycode (GDK_DISPLAY(), XK_Alt_L); if (scr->priv->keycode2 == 0) { g_warning ("scr->priv->keycode2 not existant"); } }
context: totem_scrsaver_init (TotemScrsaver *scr){	int a, b, c, d;	scr->priv = g_new0 (TotemScrsaverPrivate, 1);#ifdef HAVE_XTEST	XLockDisplay (GDK_DISPLAY());	scr->priv->have_xtest = XTestQueryExtension (GDK_DISPLAY(), &a, &b, &c, &d);	if(scr->priv->have_xtest == True)	{		scr->priv->keycode1 = XKeysymToKeycode (GDK_DISPLAY(), XK_Alt_L);		scr->priv->keycode2 = XKeysymToKeycode (GDK_DISPLAY(), XK_Alt_R);		scr->priv->keycode = &scr->priv->keycode1;	}	XUnlockDisplay (GDK_DISPLAY());#endif /* HAVE_XTEST */}