X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fevent-Xt.c;h=38b17814a19ea959248b163a7d577d7f4b737805;hb=f2025090f01da2850dd72008074d6b8dc33c0113;hp=40c0752bbe0b65085be3c1153e5ab418b1dc19ec;hpb=1c97bf160520f9e0b193236a902eb4b73d59d134;p=chise%2Fxemacs-chise.git diff --git a/src/event-Xt.c b/src/event-Xt.c index 40c0752..38b1781 100644 --- a/src/event-Xt.c +++ b/src/event-Xt.c @@ -808,7 +808,8 @@ x_to_emacs_keysym (XKeyPressedEvent *event, int simple_p) len = XmImMbLookupString (XtWindowToWidget (event->display, event->window), event, bufptr, bufsiz, &keysym, &status); #else /* XIM_XLIB */ - len = XmbLookupString (xic, event, bufptr, bufsiz, &keysym, &status); + if (xic) + len = XmbLookupString (xic, event, bufptr, bufsiz, &keysym, &status); #endif /* HAVE_XIM */ #ifdef DEBUG_XEMACS @@ -1332,10 +1333,10 @@ handle_focus_event_1 (struct frame *f, int in_p) Unfortunately native widgets break the model because they grab the keyboard focus and nothing sets it back again. I cannot find any reasonable way to do this elsewhere so we assert here that - the keybpard focus is on the emacs text widget. Menus and dialogs + the keyboard focus is on the emacs text widget. Menus and dialogs do this in their selection callback, but we don't want that since a button having focus is legitimate. An edit field having focus - is mandatory. Weirdly you get a FocusOut event when you glick in + is mandatory. Weirdly you get a FocusOut event when you click in a widget-glyph but you don't get a correspondng FocusIn when you click in the frame. Why is this? */ if (in_p