diff --git a/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java b/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java index 32469f208..b47326dc0 100644 --- a/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java +++ b/engine/src/jogl/com/jme3/system/jogl/JoglDisplay.java @@ -259,6 +259,8 @@ public class JoglDisplay extends JoglAbstractDisplay { public void init(GLAutoDrawable drawable){ // prevent initializing twice on restart if (!wasInited){ + wasInited = true; + canvas.requestFocus(); super.internalCreate(); @@ -266,8 +268,6 @@ public class JoglDisplay extends JoglAbstractDisplay { renderer.initialize(); listener.initialize(); - - wasInited = true; } }