mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
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
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue