Split the mods, layout, leds parts of xkb_state_components
authorRan Benita <ran234@gmail.com>
Mon, 22 Oct 2012 18:49:44 +0000 (20:49 +0200)
committerRan Benita <ran234@gmail.com>
Mon, 22 Oct 2012 19:48:40 +0000 (21:48 +0200)
commit6a94b122a4dde3e8f59d69f9a388e9a77c343326
treea8ac8a9f103ffe866c29f666408ab8849ae48a19
parent3a5f87b8e9856a69c8978f8baf0954e08679c974
Split the mods, layout, leds parts of xkb_state_components

Note first:
This commits breaks the ABI somewhat. If an application is run against
this commit without recompiling against the updated header, these break:
    - xkb_state_layout_*_is_active always retuns false.
    - xkb_state_serialize_mods always returns 0.
So it might break layout switching in some applications. However,
xkbcommon-compat.h provides the necessary fixes, so recompiling should
work (though updating the application is even better).

Split the enum to its individual components, which enables us to refer
to them individually. We will use that later for reporting which
components of the state have changed after update.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/compat.c
src/keymap-dump.c
src/state.c
src/text.c
src/xkbcomp/compat.c
test/interactive.c
test/state.c
xkbcommon/xkbcommon-compat.h
xkbcommon/xkbcommon.h