/[rdesktop]/sourceforge.net/trunk/rdesktop/cliprdr.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/cliprdr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 420 by forsberg, Wed Jun 11 09:00:38 2003 UTC revision 422 by forsberg, Mon Jun 16 09:03:55 2003 UTC
# Line 159  cliprdr_handle_SelectionNotify(XSelectio Line 159  cliprdr_handle_SelectionNotify(XSelectio
159    
160          int format;          int format;
161          Atom type_return;          Atom type_return;
162          Atom best_target;          Atom best_target, text_target;
163          Atom *supported_targets;          Atom *supported_targets;
164    
165          STREAM out;          STREAM out;
# Line 202  cliprdr_handle_SelectionNotify(XSelectio Line 202  cliprdr_handle_SelectionNotify(XSelectio
202                          /* FIXME: We should choose format here based                          /* FIXME: We should choose format here based
203                             on what the server wanted */                             on what the server wanted */
204                          supported_targets = (Atom *) data;                          supported_targets = (Atom *) data;
205                            best_target = XInternAtom(display, "STRING", False);
206                            text_target = XInternAtom(display, "TEXT", False);
207                          for (i = 0; i < nitems; i++)                          for (i = 0; i < nitems; i++)
208                          {                          {
209                                  DEBUG_CLIPBOARD(("Target %d: %s\n",                                  DEBUG_CLIPBOARD(("Target %d: %s\n",
210                                                   i, XGetAtomName(display, supported_targets[i])));                                                   i, XGetAtomName(display, supported_targets[i])));
211                                    if (text_target == supported_targets[i])
212                                    {
213                                            DEBUG_CLIPBOARD(("Other party supports TEXT, choosing that as best_target\n"));
214                                            best_target = supported_targets[i];
215                                    }
216                          }                          }
217                          best_target = XInternAtom(display, "TEXT", False);  
218    
219    
220                  }                  }

Legend:
Removed from v.420  
changed lines
  Added in v.422

  ViewVC Help
Powered by ViewVC 1.1.26