--- old/src/solaris/classes/sun/awt/X11/XWM.java 2012-04-08 17:42:16.106554314 -0400 +++ new/src/solaris/classes/sun/awt/X11/XWM.java 2012-04-08 17:42:15.905552373 -0400 @@ -102,7 +102,8 @@ METACITY_WM = 11, COMPIZ_WM = 12, LG3D_WM = 13, - CWM_WM = 14; + CWM_WM = 14, + MUTTER_WM = 15; public String toString() { switch (WMID) { case NO_WM: @@ -131,6 +132,8 @@ return "LookingGlass"; case CWM_WM: return "CWM"; + case MUTTER_WM: + return "Mutter"; case UNDETERMINED_WM: default: return "Undetermined WM"; @@ -573,6 +576,10 @@ // getIntProperty(XToolkit.getDefaultRootWindow(), XAtom.XA_CARDINAL)) == 0); } + static boolean isMutter() { + return isNetWMName("Mutter"); + } + static boolean isNonReparentingWM() { return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.CWM_WM); } @@ -742,6 +749,8 @@ awt_wmgr = XWM.ENLIGHTEN_WM; } else if (isMetacity()) { awt_wmgr = XWM.METACITY_WM; + } else if (isMutter()) { + awt_wmgr = XWM.MUTTER_WM; } else if (isSawfish()) { awt_wmgr = XWM.SAWFISH_WM; } else if (isKDE2()) {