Add a function to XSendEvent() and call a calback on failure/success.
Fri Jul 4 22:57:18 2003 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkasync.[ch] (_gdk_send_xevent_async): Add a function to XSendEvent() and call a calback on failure/success. * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Short-circuit messages to the same process, use _gdk_send_xevent_async().
This commit is contained in:
		| @ -26,10 +26,21 @@ | ||||
|  | ||||
| G_BEGIN_DECLS | ||||
|  | ||||
| void _gdk_x11_set_input_focus_safe (GdkDisplay             *display, | ||||
| 				    Window                  window, | ||||
| 				    int                     revert_to, | ||||
| 				    Time                    time); | ||||
| typedef void (*GdkSendXEventCallback) (Window   window, | ||||
| 				       gboolean success, | ||||
| 				       gpointer data); | ||||
|  | ||||
| void _gdk_send_xevent_async        (GdkDisplay            *display, | ||||
| 				    Window                 window, | ||||
| 				    gboolean               propagate, | ||||
| 				    glong                  event_mask, | ||||
| 				    XEvent                *event_send, | ||||
| 				    GdkSendXEventCallback  callback, | ||||
| 				    gpointer               data); | ||||
| void _gdk_x11_set_input_focus_safe (GdkDisplay            *display, | ||||
| 				    Window                 window, | ||||
| 				    int                    revert_to, | ||||
| 				    Time                   time); | ||||
|  | ||||
| G_END_DECLS | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Owen Taylor
					Owen Taylor