window.c
// a ClientMessage
// some things, like the built-in window switcher, use an EWMH ClientMessage
// also, older WM_PROTOCOLS type stuff calls this
a ClientMessage
some things, like the built-in window switcher, use an EWMH ClientMessage
also, older WM_PROTOCOLS type stuff calls this
a ClientMessage some things like the built - in window switcher use an EWMH ClientMessage also older WM_PROTOCOLS type stuff calls this
int window_send_message(Window target, Window subject, Atom atom, unsigned long protocol, unsigned long mask)
{
	XEvent e; memset(&e, 0, sizeof(XEvent));
	e.xclient.type = ClientMessage;
	e.xclient.message_type = atom;     e.xclient.window    = subject;
	e.xclient.data.l[0]    = protocol; e.xclient.data.l[1] = latest;
	e.xclient.send_event   = True;     e.xclient.format    = 32;
	int r = XSendEvent(display, target, False, mask, &e) ?1:0;
	XFlush(display);
	return r;
}
int window_send_message ( Window target , Window subject , Atom atom , unsigned long protocol , unsigned long mask ) { XEvent e ; memset ( & e , 0 , sizeof ( XEvent ) ) ; e . xclient . type = ClientMessage ; e . xclient . message_type = atom ; e . xclient . window = subject ; e . xclient . data . l [ 0 ] = protocol ; e . xclient . data . l [ 1 ] = latest ; e . xclient . send_event = True ; e . xclient . format = 32 ; int r = XSendEvent ( display , target , False , mask , & e ) ? 1 : 0 ; XFlush ( display ) ; return r ; }
a ClientMessage
some things, like the built-in window switcher, use an EWMH ClientMessage
also, older WM_PROTOCOLS type stuff calls this
a ClientMessage some things like the built - in window switcher use an EWMH ClientMessage also older WM_PROTOCOLS type stuff calls this