~ubuntu-branches/ubuntu/karmic/openjdk-6b18/karmic-updates

« back to all changes in this revision

Viewing changes to debian/patches/nonreparenting-wm.diff

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-09-07 22:16:41 UTC
  • Revision ID: james.westby@ubuntu.com-20100907221641-gilxobgxpaprajd4
Tags: 6b18-1.8.1-2ubuntu1
* Build as separate source, just for armel.
* Merge the -lib package into the -jre-headless package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff --git a/jdk/src/solaris/classes/sun/awt/X11/XWM.java b/jdk/src/solaris/classes/sun/awt/X11/XWM.java
 
2
index 68d1ff7..878327e 100644
 
3
--- openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java
 
4
+++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XWM.java
 
5
@@ -98,11 +98,14 @@ class XWM implements MWMConstants, XUtilConstants {
 
6
         ICE_WM = 10,
 
7
         METACITY_WM = 11,
 
8
         COMPIZ_WM = 12,
 
9
-        LG3D_WM = 13;
 
10
+        LG3D_WM = 13,
 
11
+        OTHER_NONREPARENTING_WM = 14;
 
12
     public String toString() {
 
13
         switch  (WMID) {
 
14
           case NO_WM:
 
15
               return "NO WM";
 
16
+          case OTHER_NONREPARENTING_WM:
 
17
+              return "Other non-reparenting WM";
 
18
           case OTHER_WM:
 
19
               return "Other WM";
 
20
           case OPENLOOK_WM:
 
21
@@ -564,7 +567,7 @@ class XWM implements MWMConstants, XUtilConstants {
 
22
     }
 
23
 
 
24
     static boolean isNonReparentingWM() {
 
25
-        return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM);
 
26
+        return (XWM.getWMID() == XWM.COMPIZ_WM || XWM.getWMID() == XWM.LG3D_WM || XWM.getWMID() == XWM.OTHER_NONREPARENTING_WM);
 
27
     }
 
28
 
 
29
     /*
 
30
@@ -764,9 +767,17 @@ class XWM implements MWMConstants, XUtilConstants {
 
31
              * supports WIN or _NET wm spec.
 
32
              */
 
33
             else if (l_net_protocol.active()) {
 
34
-                awt_wmgr = XWM.OTHER_WM;
 
35
+                if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
 
36
+                    awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
 
37
+                } else {
 
38
+                    awt_wmgr = XWM.OTHER_WM;
 
39
+               }
 
40
             } else if (win.active()) {
 
41
-                awt_wmgr = XWM.OTHER_WM;
 
42
+                if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
 
43
+                    awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
 
44
+                } else {
 
45
+                    awt_wmgr = XWM.OTHER_WM;
 
46
+               }
 
47
             }
 
48
             /*
 
49
              * Check for legacy WMs.
 
50
@@ -777,6 +788,8 @@ class XWM implements MWMConstants, XUtilConstants {
 
51
                 awt_wmgr = XWM.MOTIF_WM;
 
52
             } else if (isOpenLook()) {
 
53
                 awt_wmgr = XWM.OPENLOOK_WM;
 
54
+            } else if (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) {
 
55
+                awt_wmgr = XWM.OTHER_NONREPARENTING_WM;
 
56
             } else {
 
57
                 awt_wmgr = XWM.OTHER_WM;
 
58
             }
 
59
@@ -1298,6 +1311,7 @@ class XWM implements MWMConstants, XUtilConstants {
 
60
                   res = new Insets(28, 6, 6, 6);
 
61
                   break;
 
62
               case NO_WM:
 
63
+              case OTHER_NONREPARENTING_WM:
 
64
               case LG3D_WM:
 
65
                   res = zeroInsets;
 
66
                   break;