return 0;
break;
int wait_until_mapped(Window win) {	int ms = 50, waittime = 30;	time_t start = time(0);	XWindowAttributes attr;	while (1) {		if (! valid_window(win, NULL, 0)) {			if (time(0) > start + waittime) {				return 0;			}			usleep(ms * 1000);			continue;		}		if (! XGetWindowAttributes(dpy, win, &attr)) {			return 0;		}		if (attr.map_state == IsViewable) {			return 1;		}		usleep(ms * 1000);	}	return 0;}