Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6479959

AWT needs to use the NO_WM case when running inside of Looking Glass

XMLWordPrintable

    • b01
    • generic
    • other

        The netbeans 5.5 (beta2 or rc1) main window is blank when running under Looking Glass.

        Here is the original mail I sent to Oleg. He suggested I file it as an official bug.

        Hi Oleg,

        I've been having a problem with the netbeans window coming up blank
        (all white) under Looking Glass. I've traced this problem to the
        following AWT code in XDecoratedPeer.handleConfigureNotifyEvent(long
        ptr):

            if (!isReparented() && isVisible() && runningWM != XWM.NO_WM
                && getDecorations() != winAttr.AWT_DECOR_NONE)
            {
                insLog.fine("- visible but not reparented, skipping");
                return;
            }

        Looking Glass doesn't reparent it's windows into X11 decoration
        windows. This is because the decorations are 3D
        objects. Unfortunately, this check is true so this routine returns
        immediately without reshaping the window. This leaves the window width
        and height equal to 0 and all rendering is clipped out. This is why
        the window is blank.

        The reason why the check passes is because all xterms in the condition
        is true. The window is certainly visible and it has not been
        reparented into any other window. getDecorations() has been
        initialized somewhere in the AWT code to ALL_DECORATIONS, so this
        subterm is true also. And the runningWM equals OTHER_WM, so this term
        is true also.

        One more thing:

        This happens at least on Fedora Core 5. It probably happens on other OS's as well.

              son Oleg Sukhodolsky (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: