[Xcb] [PATCH 4/4] xkb: unify Overlay1Behavior and Overlay2Behavior
Daniel Martin
consume.noise at gmail.com
Sun Aug 11 01:51:39 PDT 2013
On Tue, Aug 06, 2013 at 02:12:03PM +0300, Ran Benita wrote:
> These two structs are used by the server in the exact same way, and are
> handled together (see xkb/xkbPrKeyEv.c, XkbKB_Overlay{1,2} handling).
> There is no need to use different (and for some reason slightly
> different) types for them.
>
> Signed-off-by: Ran Benita <ran234 at gmail.com>
> ---
> src/xkb.xml | 18 ++++++------------
> 1 file changed, 6 insertions(+), 12 deletions(-)
>
> diff --git a/src/xkb.xml b/src/xkb.xml
> index 8945445..b4b87af 100644
> --- a/src/xkb.xml
> +++ b/src/xkb.xml
> @@ -467,32 +467,26 @@ authorization from the authors.
> <field name="group" type="CARD8" />
> </struct>
>
> - <struct name="Overlay1Behavior">
> + <struct name="OverlayBehavior">
> <field name="type" type="CARD8" />
> <field name="key" type="KEYCODE" />
> </struct>
>
> - <struct name="Overlay2Behavior">
> - <field name="type" type="CARD8" />
> - <field name="key" type="CARD8" />
> - </struct>
> -
> <typedef oldname="LockBehavior" newname="PermamentLockBehavior" />
> <typedef oldname="RadioGroupBehavior" newname="PermamentRadioGroupBehavior" />
> - <typedef oldname="Overlay1Behavior" newname="PermamentOverlay1Behavior" />
> - <typedef oldname="Overlay2Behavior" newname="PermamentOverlay2Behavior" />
> + <typedef oldname="OverlayBehavior" newname="PermamentOverlayBehavior" />
>
> <union name="Behavior">
> <field name="common" type="CommonBehavior" />
> <field name="default" type="DefaultBehavior" />
> <field name="lock" type="LockBehavior" />
> <field name="radioGroup" type="RadioGroupBehavior" />
> - <field name="overlay1" type="Overlay1Behavior" />
> - <field name="overlay2" type="Overlay2Behavior" />
> + <field name="overlay1" type="OverlayBehavior" />
> + <field name="overlay2" type="OverlayBehavior" />
> <field name="permamentLock" type="PermamentLockBehavior" />
> <field name="permamentRadioGroup" type="PermamentRadioGroupBehavior" />
> - <field name="permamentOverlay1" type="PermamentOverlay1Behavior" />
> - <field name="permamentOverlay2" type="PermamentOverlay2Behavior" />
> + <field name="permamentOverlay1" type="PermamentOverlayBehavior" />
> + <field name="permamentOverlay2" type="PermamentOverlayBehavior" />
> <field name="type" type="CARD8" />
> </union>
>
> --
> 1.8.3.4
Reviewed-by: Daniel Martin <consume.noise at gmail.com>
More information about the Xcb
mailing list