commit | 60d97311be5492b02843c4e9d46f818d43499dae | [log] [tgz] |
---|---|---|
author | Derek Foreman <derekf@osg.samsung.com> | Wed Jul 15 13:00:45 2015 -0500 |
committer | Bryce Harrington <bryce@osg.samsung.com> | Fri Jul 31 15:15:59 2015 -0700 |
tree | 9fb829a5e474baae73aaa0f038c5d80b0f7ecf5f | |
parent | 30ce607682975420d5405bd3f4fbf33ca2163fb0 [diff] |
desktop-shell: Don't call wl_list_init() in the middle of a list seat->keyboard_focus_listener.link isn't a head, it's just sometimes a member of the focus signal list. Calling wl_list_init() on it puts a loop in the list. Instead, we remove the item then init it. That way we can call remove on it again later even if it hasn't been re-added to a list. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>