version 1.1 | | version 1.2 |
---|
| | |
int seln_format; | | int seln_format; |
unsigned long nbytes; | | unsigned long nbytes; |
unsigned long overflow; | | unsigned long overflow; |
char *src; | | unsigned char *src; |
| | |
/* Enable the special window hook events */ | | /* Enable the special window hook events */ |
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE); | | SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE); |
| | |
Lock_Display(); | | Lock_Display(); |
if ( XGetWindowProperty(SDL_Display, owner, selection, 0, INT_MAX/4, | | if ( XGetWindowProperty(SDL_Display, owner, selection, 0, INT_MAX/4, |
False, XA_STRING, &seln_type, &seln_format, | | False, XA_STRING, &seln_type, &seln_format, |
&nbytes, &overflow, (unsigned char **)&src) == Success ) | | &nbytes, &overflow, &src) == Success ) |
{ | | { |
if ( seln_type == XA_STRING ) | | if ( seln_type == XA_STRING ) |
{ | | { |