- use global atoms for the format ids
- add timeout when calling XCheckTypedWindowEvent
- fix broken IsClipboardFormatAvailable; it tried to do a trick with
  EnumClipboardFormats by making incorrect assumptions
- in X11DRV_IsClipboardFormatAvailable do a quick exit if no one owns
  the selection
- add 1 second *minimum* time lapse between XSelectionOwner calls
- sync clipboard ownership between different wine processes
- prevents apps from getting into wierd state where they thought they
  didn't own the selection but they did and as a result queried
  themselves for available selection data

diff --git a/server/user.h b/server/user.h
index 24c18d5..0d038b6 100644
--- a/server/user.h
+++ b/server/user.h
@@ -42,6 +42,10 @@
 extern void *free_user_handle( user_handle_t handle );
 extern void *next_user_handle( user_handle_t *handle, enum user_object type );
 
+/* clipboard functions */
+
+extern void cleanup_clipboard_thread( struct thread *thread );
+
 /* hook functions */
 
 extern void close_global_hooks(void);