• Show log

    Commit

  • Hash : 2f4db8a9
    Author : Ran Benita
    Date : 2012-10-10T09:47:31

    keymap, state: don't assume led index < xkb_keymap_num_leds
    
    xkb_keymap_num_leds() returns the number of leds that have any
    possibility of being set. Even if a led is defined but can not be set in
    any way, it is not counted.
    
    In a few places currently we assume that led indexes are smaller than
    this number, which is wrong both for the above reason and for the fact
    that the xkb format actually allows explicitly setting the indicator
    index, which means that the indexes might be non-consecutive.
    
    We don't really have good API to iterate on leds, now, because
    xkb_keymap_num_leds is pretty useless. To work around that we use
    sizeof(xkb_led_mask_t) * 8.
    
    This makes the "Group 2" led work (try switching to a layout other than
    the first in test/interactive).
    
    Signed-off-by: Ran Benita <ran234@gmail.com>
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/libxkbcommon.git
    Git SSH git@git.kmx.io:kc3-lang/libxkbcommon.git
    Public access ? public
    Description

    keymap handling library for toolkits and window systems

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags