src/macosx/classes/sun/awt/SunToolkitSubclass.java

Print this page

        

*** 28,40 **** // This class exists only so we can flush the PostEventQueue for the right AppContext // The default flushPendingEvents only flushes the thread-local context, which is wrong. // c.f. 3746956 public abstract class SunToolkitSubclass extends SunToolkit { public static void flushPendingEvents(AppContext appContext) { - flushLock.lock(); PostEventQueue postEventQueue = (PostEventQueue)appContext.get("PostEventQueue"); if (postEventQueue != null) { postEventQueue.flush(); } - flushLock.unlock(); } } --- 28,38 ----