diff options
author | George Peter Staplin <gps@Georges-Workstation.local> | 2008-09-20 17:49:16 -0600 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-09-21 17:40:42 -0700 |
commit | 852a0b0dde34e7179394d96d09122b99bf7fe904 (patch) | |
tree | fd783a549aa47d755d7401c1e1ec01e24300994e /hw/xquartz/pbproxy/x-selection.h | |
parent | 7fa6fc5ad0b12bc52a1c22906709fbb003782d11 (diff) |
XQuartz: pbproxy: Add an X error handler that returns 0.
Move the struct atom_list into the x-selection class, so that it's
no longer a global variable named atoms. This may ease pthread
integration and reduce the chances of symbols conflicting.
(cherry picked from commit c1403c713ca80104ae3736bd2ed1eb6ffa5192b6)
Diffstat (limited to 'hw/xquartz/pbproxy/x-selection.h')
-rw-r--r-- | hw/xquartz/pbproxy/x-selection.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/xquartz/pbproxy/x-selection.h b/hw/xquartz/pbproxy/x-selection.h index 5e2339831..06910b49b 100644 --- a/hw/xquartz/pbproxy/x-selection.h +++ b/hw/xquartz/pbproxy/x-selection.h @@ -40,6 +40,13 @@ struct propdata { size_t length; }; +struct atom_list { + Atom primary, clipboard, text, utf8_string, string, targets, multiple, + cstring, image_png, image_jpeg, incr, atom, clipboard_manager, + compound_text, atom_pair; +}; + + @interface x_selection : NSObject { @private @@ -79,6 +86,8 @@ struct propdata { * CLIPBOARD. It also prevents a race with INCR transfers. */ int pending_clipboard; + + struct atom_list atoms[1]; } - (void) x_active:(Time)timestamp; |