[keybindings] Show shortcuts for the active window manager

Actually display the bindings for the running window manager instead
of all others (bug #600531).
This commit is contained in:
Wang Xin 2009-11-04 18:53:37 +01:00 committed by Jens Granseuer
parent 4583bc657b
commit 7c82b5b5cc

View file

@ -868,7 +868,7 @@ append_keys_to_tree_from_file (GtkBuilder *builder,
/* If there's no keys to add, or the settings apply to a window manager
* that's not the one we're running */
if (keylist->entries->len == 0
|| (keylist->wm_name != NULL && strv_contains (wm_keybindings, keylist->wm_name))
|| (keylist->wm_name != NULL && !strv_contains (wm_keybindings, keylist->wm_name))
|| keylist->name == NULL)
{
g_free (keylist->name);