/* Window managers can set the _APPLE_NO_ORDER_IN property on windows that are being genie-restored from the Dock. We want them to be mapped but remain ordered-out until the animation completes (when the Dock will order them in). */ Bool AppleWMDoReorderWindow(WindowPtr pWin) { Atom atom; PropertyPtr prop; int rc; atom = xa_apple_no_order_in(); rc = dixLookupProperty(&prop, pWin, atom, serverClient, DixReadAccess); if (Success == rc && prop->type == atom) return 0; return 1; }
static int ProcSELinuxGetPropertyContext(ClientPtr client, pointer privKey) { WindowPtr pWin; PropertyPtr pProp; SELinuxObjectRec *obj; int rc; REQUEST(SELinuxGetPropertyContextReq); REQUEST_SIZE_MATCH(SELinuxGetPropertyContextReq); rc = dixLookupWindow(&pWin, stuff->window, client, DixGetPropAccess); if (rc != Success) return rc; rc = dixLookupProperty(&pProp, pWin, stuff->property, client, DixGetAttrAccess); if (rc != Success) return rc; obj = dixLookupPrivate(&pProp->devPrivates, privKey); return SELinuxSendContextReply(client, obj->sid); }