int clientwin_validate_func(dlist *l, void *data) { ClientWin *cw = (ClientWin *)l->data; CARD32 desktop = (*(CARD32*)data), w_desktop = wm_get_window_desktop(cw->mainwin->dpy, cw->client.window); #ifdef XINERAMA if(cw->mainwin->xin_active && ! INTERSECTS(cw->client.x, cw->client.y, cw->client.width, cw->client.height, cw->mainwin->xin_active->x_org, cw->mainwin->xin_active->y_org, cw->mainwin->xin_active->width, cw->mainwin->xin_active->height)) return 0; #endif return (w_desktop == (CARD32)-1 || desktop == w_desktop) && wm_validate_window(cw->mainwin->dpy, cw->client.window); }
int clientwin_validate_func(dlist *l, void *data) { ClientWin *cw = l->data; MainWin *mw = cw->mainwin; CARD32 desktop = (*(CARD32*)data), w_desktop = wm_get_window_desktop(mw->ps, cw->wid_client); #ifdef CFG_XINERAMA if(mw->xin_active && ! INTERSECTS(cw->src.x, cw->src.y, cw->src.width, cw->src.height, mw->xin_active->x_org, mw->xin_active->y_org, mw->xin_active->width, mw->xin_active->height)) return 0; #endif return (w_desktop == (CARD32)-1 || desktop == w_desktop) && wm_validate_window(mw->ps, cw->wid_client); }