Linux: Don't call XSetInputFocus when creating a window. XSetInputFocus can fail if the window is not mapped when calling it, and it seems that it's rude to call XSetInputFocus according to the ICCCM when the application doesn't already have the focus in one of its subwindows.

This commit is contained in:
Elias Naur 2007-02-23 08:31:59 +00:00
parent 12eb552aba
commit a5c8a3d6af
1 changed files with 0 additions and 1 deletions

View File

@ -295,7 +295,6 @@ static Window createWindow(JNIEnv* env, Display *disp, int screen, jint window_m
}
XMapRaised(disp, win);
waitMapped(disp, win);
XSetInputFocus(disp, win, RevertToNone, CurrentTime);
if (!checkXError(env, disp)) {
destroyWindow(env, disp, win);
return 0;