jdk/src/solaris/classes/sun/awt/X11/XlibUtil.java
changeset 2802 d05a9dcc8296
parent 439 3488710b02f8
child 5506 202f599c92aa
equal deleted inserted replaced
2760:f038acdbdf9c 2802:d05a9dcc8296
   147         {
   147         {
   148             XTranslateCoordinates xtc =
   148             XTranslateCoordinates xtc =
   149                 new XTranslateCoordinates(src, dst, p.x, p.y);
   149                 new XTranslateCoordinates(src, dst, p.x, p.y);
   150             try
   150             try
   151             {
   151             {
   152                 int status = xtc.execute(XToolkit.IgnoreBadWindowHandler);
   152                 int status = xtc.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
   153                 if ((status != 0) &&
   153                 if ((status != 0) &&
   154                     ((XToolkit.saved_error == null) ||
   154                     ((XToolkit.saved_error == null) ||
   155                      (XToolkit.saved_error.get_error_code() == XConstants.Success)))
   155                      (XToolkit.saved_error.get_error_code() == XConstants.Success)))
   156                 {
   156                 {
   157                     translated = new Point(xtc.get_dest_x(), xtc.get_dest_y());
   157                     translated = new Point(xtc.get_dest_x(), xtc.get_dest_y());
   304             WindowPropertyGetter wpg =
   304             WindowPropertyGetter wpg =
   305                 new WindowPropertyGetter(window, XWM.XA_WM_STATE, 0, 1, false,
   305                 new WindowPropertyGetter(window, XWM.XA_WM_STATE, 0, 1, false,
   306                                          XWM.XA_WM_STATE);
   306                                          XWM.XA_WM_STATE);
   307             try
   307             try
   308             {
   308             {
   309                 wpg.execute(XToolkit.IgnoreBadWindowHandler);
   309                 wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
   310                 if (wpg.getActualType() == XWM.XA_WM_STATE.getAtom())
   310                 if (wpg.getActualType() == XWM.XA_WM_STATE.getAtom())
   311                 {
   311                 {
   312                     return true;
   312                     return true;
   313                 }
   313                 }
   314             }
   314             }
   343     {
   343     {
   344         XToolkit.awtLock();
   344         XToolkit.awtLock();
   345         XWindowAttributes wattr = new XWindowAttributes();
   345         XWindowAttributes wattr = new XWindowAttributes();
   346         try
   346         try
   347         {
   347         {
   348             XToolkit.WITH_XERROR_HANDLER(XToolkit.IgnoreBadWindowHandler);
   348             XToolkit.WITH_XERROR_HANDLER(XErrorHandler.IgnoreBadWindowHandler.getInstance());
   349             int status = XlibWrapper.XGetWindowAttributes(XToolkit.getDisplay(),
   349             int status = XlibWrapper.XGetWindowAttributes(XToolkit.getDisplay(),
   350                                                           window, wattr.pData);
   350                                                           window, wattr.pData);
   351             XToolkit.RESTORE_XERROR_HANDLER();
   351             XToolkit.RESTORE_XERROR_HANDLER();
   352             if ((status != 0) &&
   352             if ((status != 0) &&
   353                 ((XToolkit.saved_error == null) ||
   353                 ((XToolkit.saved_error == null) ||