Lines Matching refs:pWindow
145 static bool stubSystemWindowExist(WindowInfo *pWindow)
148 if (pWindow->hWnd!=WindowFromDC(pWindow->drawable))
158 dpy = stubGetWindowDisplay(pWindow);
161 if (!XGetGeometry(dpy, pWindow->drawable, &root, &x, &y, &w, &h, &border, &depth))
174 WindowInfo *pWindow = (WindowInfo *) data1;
177 if (pWindow == pCtx->currentDrawable
178 || pWindow->type!=CHROMIUM
179 || pWindow->pOwner!=pCtx)
184 if (!stubSystemWindowExist(pWindow))
187 stubDestroyWindow(CR_CTX_CON(pCtx), (GLint)pWindow->hWnd);
189 stubDestroyWindow(CR_CTX_CON(pCtx), (GLint)pWindow->drawable);
194 stubCheckWindowState(pWindow, GL_FALSE);
266 WindowInfo *pWindow;
268 pWindow = context->currentDrawable;
269 stubGetWindowGeometry(pWindow, &winX, &winY, &winW, &winH);
749 static stubDispatchVisibleRegions(WindowInfo *pWindow)
754 dwCount = GetRegionData(pWindow->hVisibleRegion, 0, NULL);
759 GetRegionData(pWindow->hVisibleRegion, dwCount, lpRgnData);
760 crDebug("Dispatched WindowVisibleRegion (%i, cRects=%i)", pWindow->spuWindow, lpRgnData->rdh.nCount);
761 stub.spuDispatch.WindowVisibleRegion(pWindow->spuWindow, lpRgnData->rdh.nCount, (GLint*) lpRgnData->Buffer);
791 WindowInfo *pWindow = (WindowInfo *) data1;
794 if (pWindow->type!=CHROMIUM || pWindow->spuWindow==0)
799 stub.spu->dispatch_table.VBoxPackSetInjectID(pWindow->u32ClientID);
801 if (!stubSystemWindowExist(pWindow))
804 stubDestroyWindow(0, (GLint)pWindow->hWnd);
806 stubDestroyWindow(0, (GLint)pWindow->drawable);
816 stubCheckWindowState(pWindow, GL_TRUE);