11 // The primary selection is filled by highlighting a region
12 #define PRIMARY_SELECTION 0
13 // The secondary selection is filled by copying
14 #define SECONDARY_SELECTION 1
16 class BC_Clipboard
: public Thread
19 BC_Clipboard(char *display_name
);
22 int start_clipboard();
25 long clipboard_len(int clipboard_num
);
26 int to_clipboard(char *data
, long len
, int clipboard_num
);
27 int from_clipboard(char *data
, long maxlen
, int clipboard_num
);
30 void handle_selectionrequest(XSelectionRequestEvent
*request
);
31 int handle_request_string(XSelectionRequestEvent
*request
);
32 int handle_request_targets(XSelectionRequestEvent
*request
);
34 Display
*in_display
, *out_display
;
35 Atom completion_atom
, primary
, secondary
;
37 Window in_win
, out_win
;