21 # DEALINGS IN THE SOFTWARE. |
21 # DEALINGS IN THE SOFTWARE. |
22 # |
22 # |
23 |
23 |
24 |
24 |
25 diff --git a/src/KeyBind.c b/src/KeyBind.c |
25 diff --git a/src/KeyBind.c b/src/KeyBind.c |
26 index 221cedd..e06f954 100644 |
26 index 221cedd..732c0cf 100644 |
27 --- a/src/KeyBind.c |
27 --- a/src/KeyBind.c |
28 +++ b/src/KeyBind.c |
28 +++ b/src/KeyBind.c |
29 @@ -45,6 +45,7 @@ in this Software without prior written authorization from The Open Group. |
29 @@ -45,6 +45,7 @@ in this Software without prior written authorization from The Open Group. |
30 #define XK_VIETNAMESE |
30 #define XK_VIETNAMESE |
31 #define XK_XKB_KEYS |
31 #define XK_XKB_KEYS |
566 + led_control.led = num; |
569 + led_control.led = num; |
567 + XChangeKeyboardControl (dpy, KBLed | KBLedMode, &led_control); |
570 + XChangeKeyboardControl (dpy, KBLed | KBLedMode, &led_control); |
568 + } |
571 + } |
569 +} |
572 +} |
570 +#endif /* SUNSOFT_KBD */ |
573 +#endif /* SUNSOFT_KBD */ |
|
574 diff --git a/src/imConv.c b/src/imConv.c |
|
575 index e212049..35e58a3 100644 |
|
576 --- a/src/imConv.c |
|
577 +++ b/src/imConv.c |
|
578 @@ -214,7 +214,9 @@ _XimLookupMBText( |
|
579 args, 1 ) != 0) { |
|
580 count = 0; |
|
581 } else { |
|
582 - count = nbytes - to_len; |
|
583 + if(count != 0){ |
|
584 + count = nbytes - to_len; |
|
585 + } |
|
586 } |
|
587 } |
|
588 } |
|
589 @@ -284,7 +286,9 @@ _XimLookupWCText( |
|
590 args, 1 ) != 0) { |
|
591 count = 0; |
|
592 } else { |
|
593 - count = nbytes - to_len; |
|
594 + if(count != 0){ |
|
595 + count = nbytes - to_len; |
|
596 + } |
|
597 } |
|
598 } |
|
599 } else |
|
600 @@ -345,7 +349,9 @@ _XimLookupUTF8Text( |
|
601 NULL, 0) != 0) { |
|
602 count = 0; |
|
603 } else { |
|
604 - count = nbytes - to_len; |
|
605 + if(count != 0){ |
|
606 + count = nbytes - to_len; |
|
607 + } |
|
608 } |
|
609 } |
|
610 /* FIXME: |
571 diff --git a/src/xkb/XKBBind.c b/src/xkb/XKBBind.c |
611 diff --git a/src/xkb/XKBBind.c b/src/xkb/XKBBind.c |
572 index 1c16adc..3370896 100644 |
612 index 1c16adc..3370896 100644 |
573 --- a/src/xkb/XKBBind.c |
613 --- a/src/xkb/XKBBind.c |
574 +++ b/src/xkb/XKBBind.c |
614 +++ b/src/xkb/XKBBind.c |
575 @@ -53,6 +53,12 @@ static int _XkbLoadDpy( |
615 @@ -53,6 +53,12 @@ static int _XkbLoadDpy( |