mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
Fix most remaining deprecated resource lookups.
Callsites updated to use dixLookupResourceBy{Type,Class}.
TODO: Audit access modes to make sure they reflect the usage.
This commit is contained in:
parent
1abe0ee3da
commit
57aff88c7d
50 changed files with 1017 additions and 1037 deletions
|
|
@ -1363,11 +1363,12 @@ Bool
|
|||
DRIDrawablePrivDelete(pointer pResource, XID id)
|
||||
{
|
||||
WindowPtr pWin;
|
||||
int rc;
|
||||
|
||||
id = (XID)pResource;
|
||||
pWin = LookupIDByType(id, RT_WINDOW);
|
||||
rc = dixLookupWindow(&pWin, id, serverClient, DixGetAttrAccess);
|
||||
|
||||
if (pWin) {
|
||||
if (rc == Success) {
|
||||
DRIDrawablePrivPtr pDRIDrwPriv = DRI_DRAWABLE_PRIV_FROM_WINDOW(pWin);
|
||||
|
||||
if (!pDRIDrwPriv)
|
||||
|
|
|
|||
Loading…
Reference in a new issue