Commit 69d8ea4a authored by Adam Jackson's avatar Adam Jackson

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's avatarAdam Jackson <ajax@redhat.com>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 0a95a8ae
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment