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:
parent
c8f6fe0349
commit
a211f088ac
|
@ -298,6 +298,7 @@ static Window createWindow(JNIEnv* env, Display *disp, int screen, jint window_m
|
||||||
XMapRaised(disp, win);
|
XMapRaised(disp, win);
|
||||||
waitMapped(disp, win);
|
waitMapped(disp, win);
|
||||||
XClearWindow(disp, win);
|
XClearWindow(disp, win);
|
||||||
|
XSetInputFocus(disp, win, RevertToNone, CurrentTime);
|
||||||
if (!checkXError(env, disp)) {
|
if (!checkXError(env, disp)) {
|
||||||
destroyWindow(env, disp, win);
|
destroyWindow(env, disp, win);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue