Mercurial > mplayer.hg
comparison Gui/wm/wsxdnd.c @ 8481:e4736a12c898
applied Gregory's patch
author | pontscho |
---|---|
date | Mon, 16 Dec 2002 20:16:29 +0000 |
parents | fad0147bd3aa |
children | df423e2d71dc |
comparison
equal
deleted
inserted
replaced
8480:ef20a6a7a98a | 8481:e4736a12c898 |
---|---|
161 Atom ret_type; | 161 Atom ret_type; |
162 int ret_format; | 162 int ret_format; |
163 unsigned long ret_items; | 163 unsigned long ret_items; |
164 | 164 |
165 /* while there is data left...*/ | 165 /* while there is data left...*/ |
166 while(ret_left){ | 166 while(ret_left && atom_support == None){ |
167 XGetWindowProperty(wsDisplay,event->data.l[0],_XA_XdndTypeList, | 167 XGetWindowProperty(wsDisplay,event->data.l[0],_XA_XdndTypeList, |
168 offset,256,False,XA_ATOM,&ret_type, | 168 offset,256,False,XA_ATOM,&ret_type, |
169 &ret_format,&ret_items,&ret_left, | 169 &ret_format,&ret_items,&ret_left, |
170 (unsigned char**)&ret_buff); | 170 (unsigned char**)&ret_buff); |
171 | 171 |
181 if(ret_buff[i] == ok){ | 181 if(ret_buff[i] == ok){ |
182 atom_support = ok; | 182 atom_support = ok; |
183 break; | 183 break; |
184 } | 184 } |
185 } | 185 } |
186 /* found it ! */ | |
187 if (atom_support != None) | |
188 break; | |
189 } | 186 } |
190 /* maybe next time ... */ | 187 /* maybe next time ... */ |
191 XFree(ret_buff); | 188 XFree(ret_buff); |
192 offset += 256; | 189 offset += 256; |
193 } | 190 } |