Skip to content

Commit

Permalink
Wasn't enabling XDND...
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Mar 25, 2002
1 parent 1d451aa commit ba2eae8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Fl_x.cxx
@@ -1,5 +1,5 @@
//
// "$Id: Fl_x.cxx,v 1.24.2.24.2.13 2002/03/07 19:22:57 spitzak Exp $"
// "$Id: Fl_x.cxx,v 1.24.2.24.2.14 2002/03/25 02:36:59 easysw Exp $"
//
// X specific code for the Fast Light Tool Kit (FLTK).
//
Expand Down Expand Up @@ -1034,6 +1034,11 @@ void Fl_X::make_xid(Fl_Window* w, XVisualInfo *visual, Colormap colormap)
if (!w->visible()) showit = 0; // guess that wm will not show it
}

// Make it receptive to DnD:
int version = 4;
XChangeProperty(fl_display, x->xid, fl_XdndAware,
XA_ATOM, sizeof(int)*8, 0, (unsigned char*)&version, 1);

XWMHints hints;
hints.input = True;
hints.flags = InputHint;
Expand Down Expand Up @@ -1210,5 +1215,5 @@ void Fl_Window::make_current() {
#endif

//
// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.13 2002/03/07 19:22:57 spitzak Exp $".
// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.14 2002/03/25 02:36:59 easysw Exp $".
//

0 comments on commit ba2eae8

Please sign in to comment.