xkb: ProcXkbSetCompatMap should do dry-runs, then normal runs.
Was doing only dry-runs, which kinda explains why changing the compat map
didn't really have any effect.
Fallout from e8c2a3d7c9
.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
This commit is contained in:
parent
70e18a3b6b
commit
245d1c162c
|
@ -2906,7 +2906,7 @@ ProcXkbSetCompatMap(ClientPtr client)
|
|||
}
|
||||
|
||||
/* Yay, the dry-runs succeed. Let's apply */
|
||||
rc = _XkbSetCompatMap(client, dev, stuff, data, TRUE);
|
||||
rc = _XkbSetCompatMap(client, dev, stuff, data, FALSE);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
if (stuff->deviceSpec == XkbUseCoreKbd)
|
||||
|
@ -2919,7 +2919,7 @@ ProcXkbSetCompatMap(ClientPtr client)
|
|||
rc = XaceHook(XACE_DEVICE_ACCESS, client, other, DixManageAccess);
|
||||
if (rc == Success)
|
||||
{
|
||||
rc = _XkbSetCompatMap(client, other, stuff, data, TRUE);
|
||||
rc = _XkbSetCompatMap(client, other, stuff, data, FALSE);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user