On 10.05.2012, at 05:29, Jacques senecal wrote:

> I try to implement copy and paste image data for a program I have distributed 
> to source.forge.net.
> My program is photoColoring. (photocoloring.sourceforge.net)
> 
> For windows version I have no problem using windows api.
> 
> For the linux (X11) version I am able to do the implementation using Xlib
> but to do so I am force to modified a little bit the FLTK library to avoid 
> FLTK responding to some XEvents (XSelectionNotify and XSelectionRequest). If 
> I do so, as I distribute openSouce, I must distribute also the modified 
> library.
> 
> Is there a way to avoid FLTK interfering with copy/paste non-text data on the 
> clipboard (by capturing Xevent before FLTK or something like that)
> without any modification on the library.

Look at int fl_handle(const XEvent& thisevent) in src/x11.cxx . It contains all 
the code for event distribution. There may be a hook for the events you need.

Also, we know that this is an issue with FLTK. If you can, send us a patch that 
allows multiple DnD types, and we will likely apply it in the next version.

 - Matthias
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to