/[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 942 by astrand, Tue Aug 2 09:27:46 2005 UTC revision 1025 by forsberg, Mon Nov 7 13:15:19 2005 UTC
# Line 220  xclip_handle_SelectionNotify(XSelectionE Line 220  xclip_handle_SelectionNotify(XSelectionE
220          XFree(data);          XFree(data);
221    
222          if (!rdesktop_is_selection_owner)          if (!rdesktop_is_selection_owner)
223                  cliprdr_send_text_format_announce();                  cliprdr_send_simple_native_format_announce(CF_TEXT);
224          return;          return;
225    
226        fail:        fail:
# Line 276  xclip_handle_SelectionClear(void) Line 276  xclip_handle_SelectionClear(void)
276          DEBUG_CLIPBOARD(("xclip_handle_SelectionClear\n"));          DEBUG_CLIPBOARD(("xclip_handle_SelectionClear\n"));
277          have_primary = 0;          have_primary = 0;
278          XDeleteProperty(g_display, DefaultRootWindow(g_display), rdesktop_clipboard_formats_atom);          XDeleteProperty(g_display, DefaultRootWindow(g_display), rdesktop_clipboard_formats_atom);
279          cliprdr_send_text_format_announce();          cliprdr_send_simple_native_format_announce(CF_TEXT);
280  }  }
281    
282  void  void
# Line 311  xclip_handle_PropertyNotify(XPropertyEve Line 311  xclip_handle_PropertyNotify(XPropertyEve
311                                  cliprdr_send_data(g_clip_buffer, g_clip_buflen + 1);                                  cliprdr_send_data(g_clip_buffer, g_clip_buflen + 1);
312    
313                                  if (!rdesktop_is_selection_owner)                                  if (!rdesktop_is_selection_owner)
314                                          cliprdr_send_text_format_announce();                                          cliprdr_send_simple_native_format_announce(CF_TEXT);
315    
316                                  xfree(g_clip_buffer);                                  xfree(g_clip_buffer);
317                                  g_clip_buffer = 0;                                  g_clip_buffer = 0;
# Line 364  xclip_handle_PropertyNotify(XPropertyEve Line 364  xclip_handle_PropertyNotify(XPropertyEve
364          }          }
365    
366          /* PropertyDelete, or XGetWindowProperty failed */          /* PropertyDelete, or XGetWindowProperty failed */
367          cliprdr_send_text_format_announce();          cliprdr_send_simple_native_format_announce(CF_TEXT);
368          rdesktop_is_selection_owner = 0;          rdesktop_is_selection_owner = 0;
369  }  }
370  #endif  #endif
# Line 453  ui_clip_request_data(uint32 format) Line 453  ui_clip_request_data(uint32 format)
453  void  void
454  ui_clip_sync(void)  ui_clip_sync(void)
455  {  {
456          cliprdr_send_text_format_announce();          cliprdr_send_simple_native_format_announce(CF_TEXT);
457  }  }
458    
459    

Legend:
Removed from v.942  
changed lines
  Added in v.1025

  ViewVC Help
Powered by ViewVC 1.1.26