spawn_window.c
static void sendXdndEnter(Display *disp, int xdndVersion, Window source, Window target)
{
	// Only send if we are not already in an exchange
	if (!xdndState.xdndExchangeStarted) {		
		// Declare message struct and populate its values
		XEvent message;
		memset(&message, 0, sizeof(message));
		message.xclient.type = ClientMessage;
		message.xclient.display = disp;
		message.xclient.window = target;
		message.xclient.message_type = XdndEnter;
		message.xclient.format = 32;
		message.xclient.data.l[0] = source;
		message.xclient.data.l[1] = xdndVersion << 24;
		message.xclient.data.l[2] = typesWeAccept[0];
		message.xclient.data.l[3] = None;
		message.xclient.data.l[4] = None;

		// Send it to target window
		if (XSendEvent(disp, target, False, 0, &message) == 0)
			philError("XSendEvent");
	}
}
// This sends the XdndEnter message which initiates the XDND protocol exchange
This sends the XdndEnter message which initiates the XDND protocol exchange
This sends the XdndEnter message which initiates the XDND protocol exchange
static void sendXdndEnter(Display *disp, int xdndVersion, Window source, Window target)
{
	if (!xdndState.xdndExchangeStarted) {		
		XEvent message;
		memset(&message, 0, sizeof(message));
		message.xclient.type = ClientMessage;
		message.xclient.display = disp;
		message.xclient.window = target;
		message.xclient.message_type = XdndEnter;
		message.xclient.format = 32;
		message.xclient.data.l[0] = source;
		message.xclient.data.l[1] = xdndVersion << 24;
		message.xclient.data.l[2] = typesWeAccept[0];
		message.xclient.data.l[3] = None;
		message.xclient.data.l[4] = None;
		if (XSendEvent(disp, target, False, 0, &message) == 0)
			philError("XSendEvent");
	}
}
static void sendXdndEnter ( Display * disp , int xdndVersion , Window source , Window target ) { if ( ! xdndState . xdndExchangeStarted ) { XEvent message ; memset ( & message , 0 , sizeof ( message ) ) ; message . xclient . type = ClientMessage ; message . xclient . display = disp ; message . xclient . window = target ; message . xclient . message_type = XdndEnter ; message . xclient . format = 32 ; message . xclient . data . l [ 0 ] = source ; message . xclient . data . l [ 1 ] = xdndVersion << 24 ; message . xclient . data . l [ 2 ] = typesWeAccept [ 0 ] ; message . xclient . data . l [ 3 ] = None ; message . xclient . data . l [ 4 ] = None ; if ( XSendEvent ( disp , target , False , 0 , & message ) == 0 ) philError ( " " ) ; } }
This sends the XdndEnter message which initiates the XDND protocol exchange
This sends the XdndEnter message which initiates the XDND protocol exchange
// Only send if we are not already in an exchange // Declare message struct and populate its values // Send it to target window