Linux problem with AWT

Peter C. Mehlitz peter at transvirtual.com
Thu Aug 13 09:04:39 PDT 1998


On Thu, 13 Aug 1998, (U wrote:
>Try to change the following code in 'X/evt.c':
>
>jobject
>clientMessage ( JNIEnv* env, Toolkit* X )
>{
>  if ( X->event.xclient.message_type == WM_PROTOCOLS ) {
>	if ( X->event.xclient.data.l[0] == WM_DELETE_WINDOW ) {
>	  return (*env)->CallStaticObjectMethod( env, WindowEvent, getWindowEvent, X->srcIdx, (X->evtId = WINDOW_CLOSING));
>	}
>        else if ( X->event.xclient.data.l[0] == WM_TAKE_FOCUS ) {
>	  XSetInputFocus( X->dsp, X->event.xany.window, RevertToNone, CurrentTime);
>        }
>  }
>  /*
>   * this is a workaround for the common problem of requesting the focus for not
>   * yet mapped windows (resulting in BadMatch errors)
>   */

Oops, this is right, the WM_TAKE_FOCUS branch was completely ill.. Does it
help? I remember a lot of unsuccessful tests (with AfterStep, I recall).

-- Peter


More information about the kaffe mailing list