XTranslateCoordinates(dpy, window, rootwin, 0, 0, &off_x, &off_y, &w);
xtranslate(window, rootwin, 0, 0, &off_x, &off_y, &w, 0);
void set_offset(void) {	Window w;	if (! subwin) {		return;	}	X_LOCK;	XTranslateCoordinates(dpy, window, rootwin, 0, 0, &off_x, &off_y, &w);	X_UNLOCK;}