Make temporary fix for stale xkb_atoms

When xkb_free_keymap is called the atoms are all free'd, but action.c
keeps a global copy of interned "true" and "false", which remains stale.

The correct fix is to remove the need for the ActionsInit function
entirely.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-03-31 01:26:15 +03:00 committed by Daniel Stone
parent 3c9493795b
commit c83043b3c1
1 changed files with 2 additions and 0 deletions

View File

@ -1183,11 +1183,13 @@ HandleActionDef(ExprDef * def,
if ((arg->op == OpNot) || (arg->op == OpInvert)) if ((arg->op == OpNot) || (arg->op == OpInvert))
{ {
field = arg->value.child; field = arg->value.child;
constFalse.value.str = xkb_intern_atom("false");
value = &constFalse; value = &constFalse;
} }
else else
{ {
field = arg; field = arg;
constTrue.value.str = xkb_intern_atom("true");
value = &constTrue; value = &constTrue;
} }
} }