add workaround for setTitle() resetting cursor() (fixes #3472)

This commit is contained in:
Ben Fry
2015-08-08 14:54:17 -04:00
parent e23c23363a
commit b7d5f987ad
4 changed files with 14 additions and 1 deletions
+6
View File
@@ -552,6 +552,12 @@ public class PSurfaceAWT extends PSurfaceNone {
@Override
public void setTitle(String title) {
frame.setTitle(title);
// Workaround for apparent Java bug?
// https://github.com/processing/processing/issues/3472
if (cursorVisible) {
hideCursor();
showCursor();
}
}
+2 -1
View File
@@ -975,11 +975,12 @@ public class PSurfaceJOGL implements PSurface {
return def;
}
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
public void setCursor(int kind) {
System.err.println("Cursor types not supported in OpenGL, provide your cursor image");
PGraphics.showWarning("Cursor types not yet supported in OpenGL, provide your cursor image");
}
+4
View File
@@ -4,6 +4,8 @@ X prevents "fullScreen() cannot be used here" message on startup
X https://github.com/processing/processing/issues/3545
X throw an error when using methods that require sketchPath outside setup()
X https://github.com/processing/processing/issues/3433
X cursor(CROSS) breaks when using surface.setTitle()
X https://github.com/processing/processing/issues/3472
fixed earlier
X blend() and copy() are not pixel accurate for copy/scale
@@ -80,6 +82,8 @@ opengl
_ hard crash at 1920x1080, mirrored, Casey's GT 650M 1GB
_ window loses focus after maximizing
_ https://github.com/processing/processing/issues/3339
_ Implement standard cursor types in OpenGL
_ https://github.com/processing/processing/issues/3554
opengl questions
+2
View File
@@ -47,6 +47,8 @@ _ probably have to add the script/Processing.app location to user's path
gui
_ fix red in sidebar, the squiggly line beneath code
_ show hover text with 'debug'
_ show number of updates available in the footer
_ https://github.com/processing/processing/issues/3518
_ don't show breakpoints when debugger is off
_ https://github.com/processing/processing/issues/3093
_ no setting breakpoints when debugger is off