Fixed X11 error code mismatch and removed debugging output.

This commit is contained in:
Alexandre Julliard 2002-09-26 03:23:13 +00:00
parent e6d8fdb081
commit db057e70f5
1 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ static void EVENT_ProcessEvent( XEvent *event )
*/ */
static int set_focus_error_handler( Display *display, XErrorEvent *event, void *arg ) static int set_focus_error_handler( Display *display, XErrorEvent *event, void *arg )
{ {
return (event->error_code == BadValue); return (event->error_code == BadMatch);
} }
@ -399,7 +399,7 @@ static void set_focus( HWND hwnd, Time time )
TRACE( "setting focus to %x (%lx) time=%ld\n", focus, win, time ); TRACE( "setting focus to %x (%lx) time=%ld\n", focus, win, time );
X11DRV_expect_error( display, set_focus_error_handler, NULL ); X11DRV_expect_error( display, set_focus_error_handler, NULL );
XSetInputFocus( display, win, RevertToParent, time ); XSetInputFocus( display, win, RevertToParent, time );
if (X11DRV_check_error()) ERR("got BadMatch, ignoring\n" ); if (X11DRV_check_error()) TRACE("got BadMatch, ignoring\n" );
} }
} }