jdk/src/solaris/classes/sun/awt/X11/XDragSourceContextPeer.java
changeset 3938 ef327bd847c0
parent 2810 fa49c6a06baf
child 4371 dc9dcb8b0ae7
equal deleted inserted replaced
3934:487e1aa949c4 3938:ef327bd847c0
    35 import java.awt.dnd.DragGestureEvent;
    35 import java.awt.dnd.DragGestureEvent;
    36 import java.awt.dnd.InvalidDnDOperationException;
    36 import java.awt.dnd.InvalidDnDOperationException;
    37 
    37 
    38 import java.util.*;
    38 import java.util.*;
    39 
    39 
    40 import java.util.logging.*;
    40 import sun.util.logging.PlatformLogger;
       
    41 
    41 import sun.awt.ComponentAccessor;
    42 import sun.awt.ComponentAccessor;
    42 
    43 
    43 import sun.awt.dnd.SunDragSourceContextPeer;
    44 import sun.awt.dnd.SunDragSourceContextPeer;
    44 import sun.awt.dnd.SunDropTargetContextPeer;
    45 import sun.awt.dnd.SunDropTargetContextPeer;
    45 import sun.awt.SunToolkit;
    46 import sun.awt.SunToolkit;
    50  *
    51  *
    51  * @since 1.5
    52  * @since 1.5
    52  */
    53  */
    53 public final class XDragSourceContextPeer
    54 public final class XDragSourceContextPeer
    54     extends SunDragSourceContextPeer implements XDragSourceProtocolListener {
    55     extends SunDragSourceContextPeer implements XDragSourceProtocolListener {
    55     private static final Logger logger =
    56     private static final PlatformLogger logger =
    56         Logger.getLogger("sun.awt.X11.xembed.xdnd.XDragSourceContextPeer");
    57         PlatformLogger.getLogger("sun.awt.X11.xembed.xdnd.XDragSourceContextPeer");
    57 
    58 
    58     /* The events selected on the root window when the drag begins. */
    59     /* The events selected on the root window when the drag begins. */
    59     private static final int ROOT_EVENT_MASK = (int)XConstants.ButtonMotionMask |
    60     private static final int ROOT_EVENT_MASK = (int)XConstants.ButtonMotionMask |
    60         (int)XConstants.KeyPressMask | (int)XConstants.KeyReleaseMask;
    61         (int)XConstants.KeyPressMask | (int)XConstants.KeyReleaseMask;
    61     /* The events to be delivered during grab. */
    62     /* The events to be delivered during grab. */
   540 
   541 
   541         if (ev.get_type() != (int)XConstants.ClientMessage) {
   542         if (ev.get_type() != (int)XConstants.ClientMessage) {
   542             return false;
   543             return false;
   543         }
   544         }
   544 
   545 
   545         if (logger.isLoggable(Level.FINEST)) {
   546         if (logger.isLoggable(PlatformLogger.FINEST)) {
   546             logger.finest("        proxyModeSourceWindow=" +
   547             logger.finest("        proxyModeSourceWindow=" +
   547                           getProxyModeSourceWindow() +
   548                           getProxyModeSourceWindow() +
   548                           " ev=" + ev);
   549                           " ev=" + ev);
   549         }
   550         }
   550 
   551