Linux: Make sure a newly created window get the focus, if possible, to avoid a fullscreen window immediately getting minimized

This commit is contained in:
Elias Naur 2006-12-11 20:38:21 +00:00
parent c8f6fe0349
commit a211f088ac
1 changed files with 1 additions and 0 deletions

View File

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