/[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 1207 by ossman_, Mon Mar 27 09:20:24 2006 UTC revision 1208 by ossman_, Mon Mar 27 10:41:22 2006 UTC
# Line 992  xclip_init(void) Line 992  xclip_init(void)
992          format_string_atom = XInternAtom(g_display, "STRING", False);          format_string_atom = XInternAtom(g_display, "STRING", False);
993          format_utf8_string_atom = XInternAtom(g_display, "UTF8_STRING", False);          format_utf8_string_atom = XInternAtom(g_display, "UTF8_STRING", False);
994          format_unicode_atom = XInternAtom(g_display, "text/unicode", False);          format_unicode_atom = XInternAtom(g_display, "text/unicode", False);
995    
996            /* rdesktop sets _RDESKTOP_CLIPBOARD_FORMATS on the root window when acquiring the clipboard.
997               Other interested rdesktops can use this to notify their server of the available formats. */
998            rdesktop_clipboard_formats_atom =
999                    XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_FORMATS", False);
1000            XSelectInput(g_display, DefaultRootWindow(g_display), PropertyChangeMask);
1001    
1002          num_targets = 0;          num_targets = 0;
1003          targets[num_targets++] = targets_atom;          targets[num_targets++] = targets_atom;
1004          targets[num_targets++] = timestamp_atom;          targets[num_targets++] = timestamp_atom;
1005          targets[num_targets++] = rdesktop_clipboard_formats_atom;          targets[num_targets++] = rdesktop_clipboard_formats_atom;
         targets[num_targets++] = format_string_atom;  
1006  #ifdef USE_UNICODE_CLIPBOARD  #ifdef USE_UNICODE_CLIPBOARD
1007          targets[num_targets++] = format_utf8_string_atom;          targets[num_targets++] = format_utf8_string_atom;
1008  #endif  #endif
1009          targets[num_targets++] = format_unicode_atom;          targets[num_targets++] = format_unicode_atom;
1010            targets[num_targets++] = format_string_atom;
1011          targets[num_targets++] = XA_STRING;          targets[num_targets++] = XA_STRING;
   
         /* rdesktop sets _RDESKTOP_CLIPBOARD_FORMATS on the root window when acquiring the clipboard.  
            Other interested rdesktops can use this to notify their server of the available formats. */  
         rdesktop_clipboard_formats_atom =  
                 XInternAtom(g_display, "_RDESKTOP_CLIPBOARD_FORMATS", False);  
         XSelectInput(g_display, DefaultRootWindow(g_display), PropertyChangeMask);  
1012  }  }

Legend:
Removed from v.1207  
changed lines
  Added in v.1208

  ViewVC Help
Powered by ViewVC 1.1.26