• E
    ui: Shorten references into InputEvent · b5a1b443
    Eric Blake 提交于
    An upcoming patch will alter how simple unions, like InputEvent, are
    laid out, which will impact all lines of the form 'evt->u.XXX'
    (expanding it to the longer 'evt->u.XXX.data').  For better
    legibility in that patch, and less need for line wrapping, it's better
    to use a temporary variable to reduce the effect of a layout change to
    just the variable initializations, rather than every reference within
    an InputEvent.
    
    There was one instance in hid.c:hid_pointer_event() where the code
    was referring to evt->u.rel inside the case label where evt->u.abs
    is the correct name; thankfully, both members of the union have the
    same type, so it happened to work, but it is now cleaner.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    Message-Id: <1457021813-10704-8-git-send-email-eblake@redhat.com>
    Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
    b5a1b443
escc.c 29.8 KB