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:
parent
12eb552aba
commit
a5c8a3d6af
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue