mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
removed a couple of unneeded removeListeners() calls in PJOGL
This commit is contained in:
@@ -392,7 +392,6 @@ public class PJOGL extends PGL {
|
||||
@Override
|
||||
protected void registerListeners() {
|
||||
if (WINDOW_TOOLKIT == AWT) {
|
||||
pg.parent.removeListeners(pg.parent);
|
||||
pg.parent.addListeners(canvasAWT);
|
||||
|
||||
listener = new PGLListener();
|
||||
@@ -406,7 +405,6 @@ public class PJOGL extends PGL {
|
||||
NEWTWindowListener winListener = new NEWTWindowListener();
|
||||
windowNEWT.addWindowListener(winListener);
|
||||
} else if (EVENTS_TOOLKIT == AWT) {
|
||||
pg.parent.removeListeners(canvasNEWT);
|
||||
pg.parent.addListeners(canvasNEWT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user