mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 02:20:45 +01:00
changes for wheelmouse auto-detect, and incorporating video
This commit is contained in:
@@ -773,6 +773,13 @@ public class KjcEngine extends PdeEngine {
|
||||
}
|
||||
}
|
||||
});
|
||||
/*
|
||||
window.addFocusListener(new FocusAdapter() {
|
||||
public void focusLost(FocusEvent e) {
|
||||
System.out.println(e);
|
||||
window.toFront();
|
||||
}});
|
||||
*/
|
||||
|
||||
} else {
|
||||
window = new Frame(editor.sketchName); // gonna use ugly windows instead
|
||||
|
||||
@@ -331,13 +331,24 @@ public class PdeEditor extends Panel {
|
||||
// windowActivated doesn't seem to do much, so focus listener better
|
||||
presentationWindow.addFocusListener(new FocusAdapter() {
|
||||
public void focusGained(FocusEvent e) {
|
||||
//System.out.println("focusGained: " + e);
|
||||
//if (frame != null) frame.toFront(); // editor to front
|
||||
try {
|
||||
//System.out.println("moving to front");
|
||||
engine.window.toFront();
|
||||
} catch (Exception ex) { }
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
presentationWindow.addWindowListener(new WindowAdapter() {
|
||||
public void windowActivated(WindowEvent e) {
|
||||
//System.out.println(e);
|
||||
//PdeEditorConsole.systemOut.println(e);
|
||||
}
|
||||
});
|
||||
*
|
||||
|
||||
/*
|
||||
Document doc = textarea.document;
|
||||
//System.out.println(doc);
|
||||
|
||||
Reference in New Issue
Block a user