/[rdesktop]/sourceforge.net/trunk/rdesktop/xclip.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/xclip.c

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

revision 450 by jsorg71, Wed Aug 27 22:51:33 2003 UTC revision 459 by astrand, Tue Sep 2 09:37:17 2003 UTC
# Line 56  xclip_provide_selection(XSelectionReques Line 56  xclip_provide_selection(XSelectionReques
56          XSendEvent(g_display, req->requestor, False, NoEventMask, &xev);          XSendEvent(g_display, req->requestor, False, NoEventMask, &xev);
57  }  }
58    
59  void  static void
60  xclip_handle_SelectionNotify(XSelectionEvent * event)  xclip_handle_SelectionNotify(XSelectionEvent * event)
61  {  {
62          unsigned long nitems, bytes_left;          unsigned long nitems, bytes_left;
# Line 129  xclip_handle_SelectionNotify(XSelectionE Line 129  xclip_handle_SelectionNotify(XSelectionE
129          cliprdr_send_data(NULL, 0);          cliprdr_send_data(NULL, 0);
130  }  }
131    
132  void  static void
133  xclip_handle_SelectionRequest(XSelectionRequestEvent * event)  xclip_handle_SelectionRequest(XSelectionRequestEvent * event)
134  {  {
135          unsigned long nitems, bytes_left;          unsigned long nitems, bytes_left;
# Line 170  xclip_handle_SelectionRequest(XSelection Line 170  xclip_handle_SelectionRequest(XSelection
170          /* wait for data */          /* wait for data */
171  }  }
172    
173  void  static void
174  xclip_handle_SelectionClear(void)  xclip_handle_SelectionClear(void)
175  {  {
176          DEBUG_CLIPBOARD(("xclip_handle_SelectionClear\n"));          DEBUG_CLIPBOARD(("xclip_handle_SelectionClear\n"));
# Line 179  xclip_handle_SelectionClear(void) Line 179  xclip_handle_SelectionClear(void)
179          cliprdr_send_text_format_announce();          cliprdr_send_text_format_announce();
180  }  }
181    
182  void  static void
183  xclip_handle_PropertyNotify(XPropertyEvent * event)  xclip_handle_PropertyNotify(XPropertyEvent * event)
184  {  {
185          unsigned long nitems, bytes_left;          unsigned long nitems, bytes_left;
# Line 197  xclip_handle_PropertyNotify(XPropertyEve Line 197  xclip_handle_PropertyNotify(XPropertyEve
197          {          {
198                  res = XGetWindowProperty(g_display, DefaultRootWindow(g_display),                  res = XGetWindowProperty(g_display, DefaultRootWindow(g_display),
199                                           rdesktop_clipboard_formats_atom, 0,                                           rdesktop_clipboard_formats_atom, 0,
200                                           XMaxRequestSize(g_display), False, XA_STRING, &type, &format,                                           XMaxRequestSize(g_display), False, XA_STRING, &type,
201                                           &nitems, &bytes_left, &data);                                           &format, &nitems, &bytes_left, &data);
202    
203                  if ((res == Success) && (nitems > 0))                  if ((res == Success) && (nitems > 0))
204                  {                  {
# Line 296  xclip_init(void) Line 296  xclip_init(void)
296          clipboard_atom = XInternAtom(g_display, "CLIPBOARD", False);          clipboard_atom = XInternAtom(g_display, "CLIPBOARD", False);
297          targets_atom = XInternAtom(g_display, "TARGETS", False);          targets_atom = XInternAtom(g_display, "TARGETS", False);
298          timestamp_atom = XInternAtom(g_display, "TIMESTAMP", False);          timestamp_atom = XInternAtom(g_display, "TIMESTAMP", False);
299          rdesktop_clipboard_target_atom = XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_TARGET", False);          rdesktop_clipboard_target_atom =
300                    XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_TARGET", False);
301          incr_atom = XInternAtom(g_display, "INCR", False);          incr_atom = XInternAtom(g_display, "INCR", False);
302          targets[0] = targets_atom;          targets[0] = targets_atom;
303          targets[1] = XInternAtom(g_display, "TEXT", False);          targets[1] = XInternAtom(g_display, "TEXT", False);

Legend:
Removed from v.450  
changed lines
  Added in v.459

  ViewVC Help
Powered by ViewVC 1.1.26