1 --- openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java.orig 2013-10-16 16:17:14.000000000 +0200
2 +++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java 2013-10-21 20:57:34.768580842 +0200
9 + OTHER_NONREPARENTING_WM = 17;
10 public String toString() {
14 // TODO: according to wikipedia, compiz is now reparenting. This should
15 // probably be updated.
16 static boolean isNonReparentingWM() {
17 - return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM);
18 + return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM || XWM.getWMID() == XWM.OTHER_NONREPARENTING_WM);
23 * supports WIN or _NET wm spec.
25 else if (l_net_protocol.active()) {
26 - awt_wmgr = XWM.OTHER_WM;
27 + if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
28 + awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
30 + awt_wmgr = XWM.OTHER_WM;
32 } else if (win.active()) {
33 - awt_wmgr = XWM.OTHER_WM;
34 + if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
35 + awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
37 + awt_wmgr = XWM.OTHER_WM;
41 * Check for legacy WMs.
43 awt_wmgr = XWM.MOTIF_WM;
44 } else if (isOpenLook()) {
45 awt_wmgr = XWM.OPENLOOK_WM;
46 + } else if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
47 + awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
49 awt_wmgr = XWM.OTHER_WM;
52 res = new Insets(28, 6, 6, 6);
55 + case OTHER_NONREPARENTING_WM: