/hg/release/icedtea7-forest-2.4/jdk: PR1400: Menu of maximized A...

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Tue Oct 8 09:02:46 PDT 2013


changeset e4ea4c3db76c in /hg/release/icedtea7-forest-2.4/jdk
details: http://icedtea.classpath.org/hg/release/icedtea7-forest-2.4/jdk?cmd=changeset;node=e4ea4c3db76c
author: andrew
date: Tue Oct 08 16:37:50 2013 +0100

	PR1400: Menu of maximized AWT window not working in Mate


diffstat:

 src/solaris/classes/sun/awt/X11/XWM.java |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (59 lines):

diff -r bdced30f70e9 -r e4ea4c3db76c src/solaris/classes/sun/awt/X11/XWM.java
--- a/src/solaris/classes/sun/awt/X11/XWM.java	Wed Sep 18 14:10:24 2013 +0100
+++ b/src/solaris/classes/sun/awt/X11/XWM.java	Tue Oct 08 16:37:50 2013 +0100
@@ -104,7 +104,8 @@
         COMPIZ_WM = 12,
         LG3D_WM = 13,
         CWM_WM = 14,
-        MUTTER_WM = 15;
+        MUTTER_WM = 15,
+        MARCO_WM = 16;
     public String toString() {
         switch  (WMID) {
           case NO_WM:
@@ -135,6 +136,8 @@
               return "CWM";
           case MUTTER_WM:
               return "Mutter";
+          case MARCO_WM:
+              return "Marco";
           case UNDETERMINED_WM:
           default:
               return "Undetermined WM";
@@ -581,6 +584,10 @@
         return isNetWMName("Mutter") || isNetWMName("GNOME Shell");
     }
 
+    static boolean isMarco() {
+        return isNetWMName("Marco");
+    }
+
     // TODO: according to wikipedia, compiz is now reparenting. This should
     // probably be updated.
     static boolean isNonReparentingWM() {
@@ -766,6 +773,8 @@
                 awt_wmgr = CWM_WM;
             } else if (doIsIceWM && isIceWM()) {
                 awt_wmgr = XWM.ICE_WM;
+            } else if (isMarco()) {
+                awt_wmgr = XWM.MARCO_WM;
             }
             /*
              * We don't check for legacy WM when we already know that WM
@@ -1065,6 +1074,7 @@
           case XWM.SAWFISH_WM:
           case XWM.ICE_WM:
           case XWM.METACITY_WM:
+          case XWM.MARCO_WM:
               return true;
           case XWM.OPENLOOK_WM:
           case XWM.MOTIF_WM:
@@ -1091,7 +1101,7 @@
                * WMs that talk NET/WIN protocol, but do not support
                * unidirectional maximization.
                */
-              if (getWMID() == METACITY_WM) {
+              if (getWMID() == METACITY_WM || getWMID() == MARCO_WM) {
                   /* "This is a deliberate policy decision." -hp */
                   return false;
               }


More information about the distro-pkg-dev mailing list