static enum XdndState dndInSelectionNotify(enum XdndState state, XSelectionEvent *evt)
{
  fdebugf((stderr, "Receive SelectionNotify (input)\n"));
  if (evt->property != XdndSelectionAtom) return state;

  dndGetSelection(evt->requestor, evt->property);
  dndSendFinished();
  recordDragEvent(DragLeave, 1);
  return XdndStateIdle;
}
예제 #2
0
파일: sqUnixXdnd.c 프로젝트: bhatti/RoarVM
int dndHandleSelectionNotify(XSelectionEvent *evt)
{
  if (evt->property == XdndSelectionAtom)
    {
      dndGetSelection(evt->requestor, evt->property);
      dndSendFinished(evt->requestor);
      dndLeave((XClientMessageEvent *)evt);
      return 1;
    }
  return 0;
}