xkb: Write the _XKB_RULES_NAMES window property synchronously

I can't think of a good reason why this would need to be deferred to the
work queue. When we get to this point we're never in the middle of
request processing, so we can't corrupt the event/reply stream.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Adam Jackson 2018-10-25 11:22:19 -04:00
parent 0a95a8ae62
commit 69d8ea4a49
1 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ XkbFreeRMLVOSet(XkbRMLVOSet * rmlvo, Bool freeRMLVO)
}
static Bool
XkbWriteRulesProp(ClientPtr client, void *closure)
XkbWriteRulesProp(void)
{
int len, out;
Atom name;
@ -235,7 +235,7 @@ XkbSetRulesUsed(XkbRMLVOSet * rmlvo)
free(XkbOptionsUsed);
XkbOptionsUsed = (rmlvo->options ? Xstrdup(rmlvo->options) : NULL);
if (XkbWantRulesProp)
QueueWorkProc(XkbWriteRulesProp, NULL, NULL);
XkbWriteRulesProp();
return;
}