-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b01
-
generic
-
other
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2144302 | 7 | Oleg Sukhodolsky | P2 | Closed | Fixed | b07 |
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.
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.
- backported by
-
JDK-2144302 AWT needs to use the NO_WM case when running inside of Looking Glass
- Closed
- relates to
-
JDK-6429775 Xgl/Compiz/Java 1.5/Swing problem
- Resolved
-
JDK-6434227 Popup menus when rendered on X Client can't be selected w/ mouse
- Closed