diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-09-21 12:26:45 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-09-21 12:26:45 +0000 |
| commit | f0180536b39921f7c5828351b12777a82b55fb4f (patch) | |
| tree | 79affb73c6819296a7b44a148d07119cd9381b15 /src | |
| parent | 1d23087fc955e75c1a9cbab28f05e1575e6c071c (diff) | |
Use "1" as the count for the targets query instead of sizeof(Atom).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 17775e225..57c1719c8 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -596,8 +596,7 @@ int fl_handle(const XEvent& thisevent) if (e.target == TARGETS) { Atom a = XA_STRING; XChangeProperty(fl_display, e.requestor, e.property, - XA_ATOM, sizeof(Atom)*8, 0, (unsigned char*)&a, - sizeof(Atom)); + XA_ATOM, sizeof(Atom)*8, 0, (unsigned char*)&a, 1); } else if (/*e.target == XA_STRING &&*/ fl_selection_length[clipboard]) { XChangeProperty(fl_display, e.requestor, e.property, e.target, 8, 0, |
