Project: SWT
Bug 93222 Setting a cursor only needs a flush, not a sync
Reported: 2005-04-29 00:42:04 | Status: resolved fixed

When a cursor is set, SWT currently calls gdk_flush(), which does an XSync. It would be more efficient (and equivalent in this case) to use XFlush(). This can be done by calling XFlush() directly, or with gdk_display_flush(), however the GDK call is new in 2.4.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java