This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: Get xlib peers working again - OK for branch-4.0?


I just checked in these changes to trunk.  The xlib peers had been busted
for a long time, and these changes get them working at least as well as they
did a year ago (using my large application for testing).  The changes
involve only xlib peer source files.  I've reverted back to using a separate
thread to read the native event queue by stubbing out iterateNativeQueue,
etc. in XToolkit.  The single-thread mechanism was causing problems for
timers.

OK to commit the equivalent patch to branch-4.0?

2005-07-15  Scott Gilbertson  <scottg@mantatest.com>

 * gnu/awt/xlib/XCanvasPeer.java (attributes): New field.
 (eventMask): New field.
 (XCanvasPeer(Component)): Use attributes field.
 (setBackground): Implemented.
 (setEventMask): Process mask only if changed.
 * gnu/awt/xlib/XEventLoop.java (class): Iplement Runnable.
 (eventLoopThread): New field.
 (XEventLoop(Display,EventQueue)): Start eventLoopThread.
 (interrupt): Removed.
 (run): New method.
 * gnu/awt/xlib/XEventQueue.java (getNextEvent): Process Container
 and Component events.
 * gnu/awt/xlib/XFramePeer.java (processingConfigureNotify): New
 field.
 (configureNotify): Set and clear processingConfigureNotify.
 (setBounds): Process only if processingConfigureNotify is false.
 (toBack): Implemented.
 (toFront): Implemented.
 * gnu/awt/xlib/XGraphics.java (setColor): Ignore null color.
 * gnu/awt/xlib/XGraphicsConfiguration.java (getPixel): Ignore null
 color.
 * gnu/awt/xlib/XToolkit.java (nativeQueueEmpty): Always return true.
 (wakeNativeQueue): Do nothing.
 (iterateNativeQueue): Do queue.wait if blocking.
 * gnu/gcj/xlib/Font.java (loadFont): New method.
 (loadFontImpl): Renamed native method, was loadFont.
 * gnu/gcj/xlib/Window.java (toFront): New method.
 (toBack): New method.
 * gnu/gcj/xlib/natFont.cc (loadFontImpl): Renamed method, was
 loadFont.
 * gnu/gcj/xlib/natWindow.cc (toBack): New method.
 (toFront): New method.
 * gnu/gcj/xlib/natXAnyEvent.cc (loadNext): Removed timeout.

Attachment: patch_20050715_getXlibWorking.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]