mirror of
https://github.com/processing/processing4.git
synced 2026-02-15 03:15:40 +01:00
Fixes focus gain/lost detection with OpenGL renderers, issue #1483:
http://code.google.com/p/processing/issues/detail?id=1483
This commit is contained in:
@@ -667,6 +667,7 @@ public class PGL {
|
||||
window.addKeyListener(keyListener);
|
||||
NEWTWindowListener winListener = new NEWTWindowListener();
|
||||
window.addWindowListener(winListener);
|
||||
canvasNEWT.addFocusListener(pg.parent); // So focus detection work.
|
||||
|
||||
capabilities = window.getChosenGLCapabilities();
|
||||
canvas = canvasNEWT;
|
||||
|
||||
Reference in New Issue
Block a user