I ran into a problem with Java JRE 1.4 applications running under
ctwm on Linux.  Whenever a Java app created a new window, the
window would appear on the screen, but the app would then freeze
for 5+ seconds before drawing the window.  I could unfreeze the
app sooner by moving or resizing the window. 

I poked around and found that it happens under ctwm with the options

  UsePPosition "on"
  UseThreeDBorders

or under ctwm (and twm too) with

  UsePPosition "on"
  BorderWidth 0


I reported it as a bug in Java, but also came up with a satisfactory
ctwm workaround to use in the meantime.

In HandleConfigureRequest in events.c, I added the following
code before the call to SetupFrame:

    /* Workaround for Java 1.4 bug that freezes the application whenever
     * a new window is displayed.  (When UsePPosition is on and either
     * UseThreeDBorders or BorderWidth 0 is set.)
     */
    if (!bw)
        sendEvent = True;


Thought I might share this in case anybody else has that problem.

andy

Reply via email to