add: XFlush (display);
context: void scrsaver_init (Display *display){#ifdef HAVE_XTEST	int a, b, c, d;	xtest = XTestQueryExtension (display, &a, &b, &c, &d);	if(xtest == True)	{		keycode = XKeysymToKeycode (display, XK_Shift_L);		g_timeout_add (15000, (GSourceFunc)fake_event, display);	}#endif /* HAVE_XTEST */}