# Any other sources for SDL help or information?

**URL:** <https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864>\
**Category:** SDL Development\
**Created:** [November 19, 2009, 9:26pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864 "2009-11-19T21:26:38Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![UmanEntity](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/u/58956e/32.png) [@UmanEntity](https://discourse.libsdl.org/u/UmanEntity)\
**Post date:** [November 19, 2009, 9:26pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/1 "2009-11-19T21:26:38Z")

</div>

I am a bit saddened that nobody has an answer for my question about SDL and X11 Drag and Drop. I was selling this feature for my application and it seems that now I will have to remove it from the list of features. In order to implement this it would seem I would have to invest a good amount of time in understanding the internals of the X11 implementation of SDL.

If there are any other forums or avenues to ask for help I would appreciate the information…

## Thank you, UmanEntity------------------------

## He’s dead Jim!

---

<div class="post-metadata">

**Author:** ![Kartik\_Thakore](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/kartik_thakore/32/1809_2.png) [@Kartik\_Thakore](https://discourse.libsdl.org/u/Kartik_Thakore)\
**Post date:** [November 19, 2009, 10:03pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/2 "2009-11-19T22:03:23Z")

</div>

Talk to gtk folks they got this done… See if you can emulate will  
using those tricks (glib) and x11+SDL.

Kartik ThakoreOn 19-Nov-09, at 4:26 PM, “UmanEntity” \<Michael\_Uman at [sdesigns.com](http://sdesigns.com)\> wrote:

> I am a bit saddened that nobody has an answer for my question about  
> SDL and X11 Drag and Drop. I was selling this feature for my  
> application and it seems that now I will have to remove it from the  
> list of features. In order to implement this it would seem I would  
> have to invest a good amount of time in understanding the internals  
> of the X11 implementation of SDL.
> 
> If there are any other forums or avenues to ask for help I would  
> appreciate the information…
> 
> Thank you,  
> UmanEntity
> 
> * * *
> 
> ## He’s dead Jim!
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![Kakarott](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/k/7feea3/32.png) [@Kakarott](https://discourse.libsdl.org/u/Kakarott)\
**Post date:** [November 20, 2009, 8:44pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/3 "2009-11-20T20:44:42Z")

</div>

I used Qt with Java and there were 2 examples of Drag and drop:  
DnD with Icons: [http://p.nn-d.de/1164](http://p.nn-d.de/1164)  
DnD with Text: [http://p.nn-d.de/1165](http://p.nn-d.de/1165)

Because Qt is also ( and mainly) a Framework for C++ , there should be also DnD in C++  
Looking there should help: [http://qt.nokia.com/doc/4.5/dnd.html](http://qt.nokia.com/doc/4.5/dnd.html)

Maybe you could just grab that feature and implement it in your SDL application.  
Also this should work on windows, linux and mac, so you are not tied to X11 and your special implementation.

Greetings  
Kakarott

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [November 21, 2009, 8:17am UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/4 "2009-11-21T08:17:28Z")

</div>

You can also see an example of using the native window and API calls  
with SDL in the scrap demo:  
[http://www.libsdl.org/projects/scrap/](http://www.libsdl.org/projects/scrap/)

If you do end up implementing drag and drop, I’d love to see it for  
possible inclusion with SDL 1.3.

See ya!On Thu, Nov 19, 2009 at 1:26 PM, UmanEntity \<Michael\_Uman at [sdesigns.com](http://sdesigns.com)\> wrote:

> I am a bit saddened that nobody has an answer for my question about SDL and  
> X11 Drag and Drop. I was selling this feature for my application and it  
> seems that now I will have to remove it from the list of features. In order  
> to implement this it would seem I would have to invest a good amount of time  
> in understanding the internals of the X11 implementation of SDL.
> 
> If there are any other forums or avenues to ask for help I would appreciate  
> the information…
> 
> Thank you,  
> UmanEntity
> 
> * * *
> 
> * * *
> 
> ## He’s dead Jim!
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

–  
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

---

<div class="post-metadata">

**Author:** ![Eric\_Wing](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/e/ea5d25/32.png) [@Eric\_Wing](https://discourse.libsdl.org/u/Eric_Wing)\
**Post date:** [November 23, 2009, 11:27pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/5 "2009-11-23T23:27:36Z")

</div>

Also, please don’t forget about the SDL\_Clipboard proposal found here:

> **[SDL\_Clipboard API Prototype/Proposal | PlayControl Software](https://playcontrol.net/ewing/jibberjabber/SDL_ClipboardPrototype.html)**
>
> Clipboard API and implementation for SDL. Prototype proposal.

I’m still looking for an X11 hero to implement that backend.

-EricOn 11/21/09, Sam Lantinga wrote:

> You can also see an example of using the native window and API calls  
> with SDL in the scrap demo:  
> [http://www.libsdl.org/projects/scrap/](http://www.libsdl.org/projects/scrap/)
> 
> If you do end up implementing drag and drop, I’d love to see it for  
> possible inclusion with SDL 1.3.

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [November 24, 2009, 7:58am UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/6 "2009-11-24T07:58:34Z")

</div>

BTW, Eric, I was looking at that while investigating clipboard support  
for SDL 1.3. I have work in progress sitting on my hard drive as I  
wanted to do more research on clipboard image and other data formats  
on different platforms.

See ya!On Mon, Nov 23, 2009 at 3:27 PM, E. Wing wrote:

> On 11/21/09, Sam Lantinga \<@slouken\> wrote:
> 
> > You can also see an example of using the native window and API calls  
> > with SDL in the scrap demo:  
> > [http://www.libsdl.org/projects/scrap/](http://www.libsdl.org/projects/scrap/)
> > 
> > If you do end up implementing drag and drop, I’d love to see it for  
> > possible inclusion with SDL 1.3.
> 
> Also, please don’t forget about the SDL\_Clipboard proposal found here:  
> [SDL\_Clipboard API Prototype/Proposal | PlayControl Software](http://playcontrol.net/ewing/jibberjabber/SDL_ClipboardPrototype.html)
> 
> I’m still looking for an X11 hero to implement that backend.
> 
> -Eric
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

–  
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

---

<div class="post-metadata">

**Author:** ![Rene\_Dudfield](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/rene_dudfield/32/3235_2.png) [@Rene\_Dudfield](https://discourse.libsdl.org/u/Rene_Dudfield)\
**Post date:** [November 24, 2009, 12:17pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/7 "2009-11-24T12:17:52Z")

</div>

hi,

please see the pygame clip board support… in the src/scrap\_\*.c  
files. It is based on SDL\_scrap, but with a bunch of fixes…  
especially for X.

With it you can paste images into gimp for example.

cu,On Tue, Nov 24, 2009 at 8:58 AM, Sam Lantinga wrote:

> BTW, Eric, I was looking at that while investigating clipboard support  
> for SDL 1.3. ?I have work in progress sitting on my hard drive as I  
> wanted to do more research on clipboard image and other data formats  
> on different platforms.
> 
> See ya!

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [November 25, 2009, 5:05am UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/8 "2009-11-25T05:05:05Z")

</div>

Awesome, thank you! Is it okay if I incorporate it into SDL 1.3 under  
the dual commercial and LGPL license?On Tue, Nov 24, 2009 at 4:17 AM, Ren? Dudfield wrote:

> On Tue, Nov 24, 2009 at 8:58 AM, Sam Lantinga \<@slouken\> wrote:
> 
> > BTW, Eric, I was looking at that while investigating clipboard support  
> > for SDL 1.3. ?I have work in progress sitting on my hard drive as I  
> > wanted to do more research on clipboard image and other data formats  
> > on different platforms.
> > 
> > See ya!
> 
> hi,
> 
> please see the pygame clip board support… in the src/scrap\_\*.c  
> files. ?It is based on SDL\_scrap, but with a bunch of fixes…  
> especially for X.
> 
> With it you can paste images into gimp for example.
> 
> cu,
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

–  
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

---

<div class="post-metadata">

**Author:** ![Rene\_Dudfield](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/rene_dudfield/32/3235_2.png) [@Rene\_Dudfield](https://discourse.libsdl.org/u/Rene_Dudfield)\
**Post date:** [December 10, 2009, 10:46am UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/9 "2009-12-10T10:46:22Z")

</div>

Hi,

it’s ok to include the clipboard stuff by me. You’ll also have to ask  
Marcus von Appen, since he wrote most of the code.

I’ve CC’d this email to Marcus.

cheers,

ps. sorry about the very slow response… there’s millions of emails  
on the SDL list, and I missed this email.On Wed, Nov 25, 2009 at 5:05 AM, Sam Lantinga wrote:

> Awesome, thank you! ?Is it okay if I incorporate it into SDL 1.3 under  
> the dual commercial and LGPL license?
> 
> On Tue, Nov 24, 2009 at 4:17 AM, Ren? Dudfield \<@Rene\_Dudfield\> wrote:
> 
> > On Tue, Nov 24, 2009 at 8:58 AM, Sam Lantinga wrote:
> > 
> > > BTW, Eric, I was looking at that while investigating clipboard support  
> > > for SDL 1.3. ?I have work in progress sitting on my hard drive as I  
> > > wanted to do more research on clipboard image and other data formats  
> > > on different platforms.
> > > 
> > > See ya!
> > 
> > hi,
> > 
> > please see the pygame clip board support… in the src/scrap\_\*.c  
> > files. ?It is based on SDL\_scrap, but with a bunch of fixes…  
> > especially for X.
> > 
> > With it you can paste images into gimp for example.
> > 
> > cu,
> > 
> > * * *
> > 
> > SDL mailing list  
> > SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> > [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)
> 
> –  
> ? ? ? ?-Sam Lantinga, Founder and President, Galaxy Gameworks LLC
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

---

<div class="post-metadata">

**Author:** ![marcusva](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@marcusva](https://discourse.libsdl.org/u/marcusva)\
**Post date:** [December 11, 2009, 7:24pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/10 "2009-12-11T19:24:41Z")

</div>

On, Thu Dec 10, 2009, Rene Dudfield wrote:

> Hi,
> 
> it’s ok to include the clipboard stuff by me. You’ll also have to ask  
> Marcus von Appen, since he wrote most of the code.
> 
> I’ve CC’d this email to Marcus.

Thanks for the pointer. The discussion on the list slipped through my  
fingers (due to the subject, I guess).

The svn://seul.org/svn/pygame/branches/sdl\_pgame source tree is much  
cleaner and easier to integrate, I would guess. It does not include the  
MacOS X and QNX code portions, though.

Regarding QNX support, do not rely on the code in  
svn://seul.org/svn/pygame/trunk/. It is some early stage, not very well  
tested and not maintained (anymore) as the maintenance efforts are to  
high for us (and I do not have a license for QNX anymore :-). You can use  
it as base for an own implementation, though.

I do not know about the Mac OS code portion. It uses some python  
encapsulation, Rene can better explain :-).

Additional pointers: the X11 code is not fully ICCCM compatible - the  
X11 specs in that area are a pain and I was too lazy to write code for  
it. Except from that, for both, Win32 and X11 the code is nearly feature  
complete, including registration of own clipboard types, support of the  
most important system clipboard formats in regards of graphics,  
application-local clipboard types and so on.

If you need assistance with the integration or particular details, do  
not hesitate to bug me (and take this as an implicit OK for the  
integration into the SDL development trees, be it commercial or LGPL).

Regards  
Marcus  
-------------- next part --------------  
A non-text attachment was scrubbed…  
Name: not available  
Type: application/pgp-signature  
Size: 196 bytes  
Desc: not available  
URL: [http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20091211/276722e7/attachment.pgp](http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20091211/276722e7/attachment.pgp)

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [December 13, 2009, 8:34am UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/11 "2009-12-13T08:34:59Z")

</div>

Thanks Marcus, I’ll definitely look at this for SDL 1.3. If you get  
interested and want to submit a patch, I’ll gladly accept it. 🙂

See ya!On Fri, Dec 11, 2009 at 11:24 AM, Marcus von Appen wrote:

> On, Thu Dec 10, 2009, Rene Dudfield wrote:
> 
> > Hi,
> > 
> > it’s ok to include the clipboard stuff by me. ?You’ll also have to ask  
> > Marcus von Appen, since he wrote most of the code.
> > 
> > I’ve CC’d this email to Marcus.
> 
> Thanks for the pointer. The discussion on the list slipped through my  
> fingers (due to the subject, I guess).
> 
> The svn://seul.org/svn/pygame/branches/sdl\_pgame source tree is much  
> cleaner and easier to integrate, I would guess. It does not include the  
> MacOS X and QNX code portions, though.
> 
> Regarding QNX support, do not rely on the code in  
> svn://seul.org/svn/pygame/trunk/. It is some early stage, not very well  
> tested and not maintained (anymore) as the maintenance efforts are to  
> high for us (and I do not have a license for QNX anymore :-). You can use  
> it as base for an own implementation, though.
> 
> I do not know about the Mac OS code portion. It uses some python  
> encapsulation, Rene can better explain :-).
> 
> Additional pointers: the X11 code is not fully ICCCM compatible - the  
> X11 specs in that area are a pain and I was too lazy to write code for  
> it. Except from that, for both, Win32 and X11 the code is nearly feature  
> complete, including registration of own clipboard types, support of the  
> most important system clipboard formats in regards of graphics,  
> application-local clipboard types and so on.
> 
> If you need assistance with the integration or particular details, do  
> not hesitate to bug me (and take this as an implicit OK for the  
> integration into the SDL development trees, be it commercial or LGPL).
> 
> Regards  
> Marcus
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

–  
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

---

<div class="post-metadata">

**Author:** ![Rene\_Dudfield](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/rene_dudfield/32/3235_2.png) [@Rene\_Dudfield](https://discourse.libsdl.org/u/Rene_Dudfield)\
**Post date:** [December 13, 2009, 3:19pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/12 "2009-12-13T15:19:14Z")

</div>

hi,

regarding the Mac OSX code in the pygame tree… it is not good or  
complete. I’d recommend using the SDL\_clipboard code from Eric  
instead (or doing something from scratch).

We did discover some very bad crashes with clipboard stuff on OSX with  
image types however… so beware!! Wrongly using their clipboard APIs  
has caused machines to become unbootable… (weird I know). This was  
with osx 10.3.x and 10.4.x… so maybe those crashes are fixed now.

cheers,

---

<div class="post-metadata">

**Author:** ![UmanEntity](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/u/58956e/32.png) [@UmanEntity](https://discourse.libsdl.org/u/UmanEntity)\
**Post date:** [December 15, 2009, 8:00pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/13 "2009-12-15T20:00:49Z")

</div>

So I am more confused than ever on this issue…

1. Now I am excited that I might be able to get X11 SDL code for pasting text from the clipboard, but none of the links which are in this thread yield any such code. I need this code in C/C++ and I don’t have time to fool with python, etc…

2. I am nearly giving up on the idea of getting help for the SDL drag and drop feature… I was hoping I could get some pointers and still it seems like this has not been attempted. I would do it but my project is on a tight deadline to deliver by February.

Any other help would be greatly appreciated…

## Thank you, UmanEntity------------------------

## He’s dead Jim!

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [December 15, 2009, 9:23pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/14 "2009-12-15T21:23:13Z")

</div>

For copy/paste, you can use this example to get some basic functionality:  
[http://www.libsdl.org/projects/scrap/](http://www.libsdl.org/projects/scrap/)

Drag and drop hasn’t been fully implemented anywhere with SDL, as far  
as I know. It’s on the list for 1.3, but low priority and may be  
punted unless someone is interested in picking it up.

See ya!  
–SamOn Tue, Dec 15, 2009 at 12:00 PM, UmanEntity \<Michael\_Uman at [sdesigns.com](http://sdesigns.com)\> wrote:

> So I am more confused than ever on this issue…
> 
> 1. Now I am excited that I might be able to get X11 SDL code for pasting  
> text from the clipboard, but none of the links which are in this thread  
> yield any such code. I need this code in C/C++ and I don’t have time to fool  
> with python, etc…
> 
> 2. I am nearly giving up on the idea of getting help for the SDL drag and  
> drop feature… I was hoping I could get some pointers and still it seems  
> like this has not been attempted. I would do it but my project is on a tight  
> deadline to deliver by February.
> 
> Any other help would be greatly appreciated…
> 
> Thank you,  
> UmanEntity
> 
> * * *
> 
> * * *
> 
> ## He’s dead Jim!
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

–  
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

---

<div class="post-metadata">

**Author:** ![marcusva](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/m/2bfe46/32.png) [@marcusva](https://discourse.libsdl.org/u/marcusva)\
**Post date:** [December 15, 2009, 10:37pm UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/15 "2009-12-15T22:37:17Z")

</div>

Quoting UmanEntity \<Michael\_Uman at [sdesigns.com](http://sdesigns.com)\>:

> So I am more confused than ever on this issue…
> 
> 1. Now I am excited that I might be able to get X11 SDL code for  
> pasting text from the clipboard, but none of the links which are in  
> this thread yield any such code.

Actually following links and using svn helps ;-). For web people here is  
a http link:

[http://www.seul.org/viewcvs/viewcvs.cgi/branches/sdl\_pgame/src/scrap\_x11.c?rev=1921&root=PyGame&view=auto](http://www.seul.org/viewcvs/viewcvs.cgi/branches/sdl_pgame/src/scrap_x11.c?rev=1921&root=PyGame&view=auto)

> I need this code in C/C++ and I don’t have time to fool with python, etc…

You actually read the thread? This is about C implementations, the only python  
reference was the macosx code.  
Besides, “don’t have the time” is definitely worth a ‘read it up yourself  
in the specs’ reply. Either you have the time to look or you ignore it ;-).

> 1. I am nearly giving up on the idea of getting help for the SDL  
> drag and drop feature… I was hoping I could get some pointers and  
> still it seems like this has not been attempted. I would do it but  
> my project is on a tight deadline to deliver by February.

I know of some applications using pygame’s clipboard implementation  
in conjunction with drag’n’drop - the drag’n’drop triggering itself however  
is not covered by the clipboard code above as it is strongly wired to the  
concrete windowing and application environment. Not too hard to implement,  
though.

Regards  
Marcus

---

<div class="post-metadata">

**Author:** ![UmanEntity](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/u/58956e/32.png) [@UmanEntity](https://discourse.libsdl.org/u/UmanEntity)\
**Post date:** [December 16, 2009, 2:53am UTC](https://discourse.libsdl.org/t/any-other-sources-for-sdl-help-or-information/16864/16 "2009-12-16T02:53:21Z")

</div>

mva wrote:

> Quoting UmanEntity \<Michael\_Uman at [sdesigns.com](http://sdesigns.com)\>:
> 
> > So I am more confused than ever on this issue…
> > 
> > 1. Now I am excited that I might be able to get X11 SDL code for  
> > pasting text from the clipboard, but none of the links which are in  
> > this thread yield any such code.
> 
> Actually following links and using svn helps ;-). For web people here is  
> a http link:
> 
> [http://www.seul.org/viewcvs/viewcvs.cgi/branches/sdl\_pgame/src/scrap\_x11.c?rev=1921&root=PyGame&view=auto](http://www.seul.org/viewcvs/viewcvs.cgi/branches/sdl_pgame/src/scrap_x11.c?rev=1921&root=PyGame&view=auto)
> 
> > I need this code in C/C++ and I don’t have time to fool with python, etc…
> 
> You actually read the thread? This is about C implementations, the only python  
> reference was the macosx code.  
> Besides, “don’t have the time” is definitely worth a ‘read it up yourself  
> in the specs’ reply. Either you have the time to look or you ignore it ;-).
> 
> > 1. I am nearly giving up on the idea of getting help for the SDL  
> > drag and drop feature… I was hoping I could get some pointers and  
> > still it seems like this has not been attempted. I would do it but  
> > my project is on a tight deadline to deliver by February.
> 
> I know of some applications using pygame’s clipboard implementation  
> in conjunction with drag’n’drop - the drag’n’drop triggering itself however  
> is not covered by the clipboard code above as it is strongly wired to the  
> concrete windowing and application environment. Not too hard to implement,  
> though.
> 
> Regards  
> Marcus
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

Hello,

Ok I finally got the SDL\_Clipboard code to work and it works excellent in my application… Thank you for the pointers to the [http://www.libsdl.org/projects/scrap/](http://www.libsdl.org/projects/scrap/) which contained the code which I needed to get text pasted into my application from the clipboard.

I will look more into the drag&drop code this week.

Thanks for the support!

## UmanEntity------------------------

## He’s dead Jim!
