From 69d8ea4a49793a94f821d1a328856901a1c02a5a Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 25 Oct 2018 11:22:19 -0400 Subject: [PATCH] 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 Reviewed-by: Peter Hutterer --- xkb/xkbInit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xkb/xkbInit.c b/xkb/xkbInit.c index 9e45b4b71..4108e1b26 100644 --- a/xkb/xkbInit.c +++ b/xkb/xkbInit.c @@ -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; }