< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java

Print this page




 310         XPropertyEvent ev = xev.get_xproperty();
 311         if (ev.get_atom() == XWM.XA_KDE_NET_WM_FRAME_STRUT.getAtom()
 312             || ev.get_atom() == XWM.XA_NET_FRAME_EXTENTS.getAtom())
 313         {
 314             if (XWM.getWMID() != XWM.UNITY_COMPIZ_WM) {
 315                 getWMSetInsets(XAtom.get(ev.get_atom()));
 316             } else {
 317                 if(!isReparented()) {
 318                     return;
 319                 }
 320                 wm_set_insets = null;
 321                 Insets in = getWMSetInsets(XAtom.get(ev.get_atom()));
 322                 if (isNull(in)) {
 323                     return;
 324                 }
 325                 if (!isEmbedded() && !isTargetUndecorated()) {
 326                     lastKnownInsets.put(getClass(), in);
 327                 }
 328                 if (!in.equals(dimensions.getInsets())) {
 329                     handleCorrectInsets(in);


 330                 }
 331                 insets_corrected = true;
 332             }
 333         }
 334     }
 335 
 336     long reparent_serial = 0;
 337 
 338     public void handleReparentNotifyEvent(XEvent xev) {
 339         XReparentEvent  xe = xev.get_xreparent();
 340         if (insLog.isLoggable(PlatformLogger.Level.FINE)) {
 341             insLog.fine(xe.toString());
 342         }
 343         reparent_serial = xe.get_serial();
 344         XToolkit.awtLock();
 345         try {
 346             long root = XlibWrapper.RootWindow(XToolkit.getDisplay(), getScreenNumber());
 347 
 348             if (isEmbedded()) {
 349                 setReparented(true);




 310         XPropertyEvent ev = xev.get_xproperty();
 311         if (ev.get_atom() == XWM.XA_KDE_NET_WM_FRAME_STRUT.getAtom()
 312             || ev.get_atom() == XWM.XA_NET_FRAME_EXTENTS.getAtom())
 313         {
 314             if (XWM.getWMID() != XWM.UNITY_COMPIZ_WM) {
 315                 getWMSetInsets(XAtom.get(ev.get_atom()));
 316             } else {
 317                 if(!isReparented()) {
 318                     return;
 319                 }
 320                 wm_set_insets = null;
 321                 Insets in = getWMSetInsets(XAtom.get(ev.get_atom()));
 322                 if (isNull(in)) {
 323                     return;
 324                 }
 325                 if (!isEmbedded() && !isTargetUndecorated()) {
 326                     lastKnownInsets.put(getClass(), in);
 327                 }
 328                 if (!in.equals(dimensions.getInsets())) {
 329                     handleCorrectInsets(in);
 330                 } else {
 331                     content.setContentBounds(dimensions);
 332                 }
 333                 insets_corrected = true;
 334             }
 335         }
 336     }
 337 
 338     long reparent_serial = 0;
 339 
 340     public void handleReparentNotifyEvent(XEvent xev) {
 341         XReparentEvent  xe = xev.get_xreparent();
 342         if (insLog.isLoggable(PlatformLogger.Level.FINE)) {
 343             insLog.fine(xe.toString());
 344         }
 345         reparent_serial = xe.get_serial();
 346         XToolkit.awtLock();
 347         try {
 348             long root = XlibWrapper.RootWindow(XToolkit.getDisplay(), getScreenNumber());
 349 
 350             if (isEmbedded()) {
 351                 setReparented(true);


< prev index next >