Exemple #1
0
void numlock_set_on()
    {
#ifdef HAVE_XKB
    if( xkb_set_on())
        return;
#endif
#ifdef HAVE_XTEST
    xtest_set_on();
#endif
    }
Exemple #2
0
void numlock_toggle()
    {
#ifdef HAVE_XKB
    if( xkb_toggle())
        return;
#endif
#ifdef HAVE_XTEST
#ifdef HAVE_XKB
    if (xkb_state())
        xtest_set_on();
    else
        xtest_set_off();
#else // HAVE_XKB
    xtest_toggle();
#endif // HAVE_XKB
#endif
    }