--- old/modules/graphics/src/main/java/com/sun/glass/ui/Window.java 2013-09-03 18:06:33.000000000 +0400 +++ new/modules/graphics/src/main/java/com/sun/glass/ui/Window.java 2013-09-03 18:06:33.000000000 +0400 @@ -288,6 +288,17 @@ } } + private boolean cursorUpdateEnabled = true; + + public void setUpdatesCursor(boolean updatesCursor) { + cursorUpdateEnabled = updatesCursor; + _setUpdatesCursor(this.ptr, updatesCursor); + } + + protected void _setUpdatesCursor(long ptr, boolean updatesCursor) { + // The native field should be set only on Windows + } + protected abstract boolean _close(long ptr); public void close() { Application.checkEventThread(); @@ -1021,7 +1032,9 @@ */ public void setCursor(Cursor cursor) { Application.checkEventThread(); - _setCursor(this.ptr, cursor); + if (cursorUpdateEnabled) { + _setCursor(this.ptr, cursor); + } } protected abstract void _toFront(long ptr);