DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2250
Version: 1.1.10


I am sorry ,but , I don`t know how to report the bug or ask for help .  Is
there may rules to follow ?
I have search the Bug and Features for the "Fl_Group send" , but noting
like my bug . so ...
My app work in samsung arm 9 2410 , linux 2.4     ,tanyX 4.02 , general 
our app work OK, but once in a while app will crash when the  "static int
send(Fl_Widget* o, int event)" in "Fl_Group.cxx" received a event 12(is
event12 the FL_SHORTCUT ?) ,But We dont know where is the true cause of
the crash ...now  We  are shield the event 12 ,when  event 12 came in we
will return at once .
But will the change we make lead to another crash , or is ok to ignore the
event 12?

THE CODE:
static int send(Fl_Widget* o, int event) {
  if(event == 12) return 0;//THE CHANGE WE MAKE
  if (o->type() < FL_WINDOW) return o->handle(event);
  switch ( event )
  {
  case FL_DND_ENTER:
  case FL_DND_DRAG:
    // figure out correct type of event:
    event = (o->contains(Fl::belowmouse())) ? FL_DND_DRAG : FL_DND_ENTER;
  }
  int save_x = Fl::e_x; Fl::e_x -= o->x();
  int save_y = Fl::e_y; Fl::e_y -= o->y();
  int ret = o->handle(event);
  Fl::e_y = save_y;
  Fl::e_x = save_x;
  switch ( event )
  {
  case FL_ENTER:
  case FL_DND_ENTER:
    // Successful completion of FL_ENTER means the widget is now the
    // belowmouse widget, but only call Fl::belowmouse if the child
    // widget did not do so:
    if (!o->contains(Fl::belowmouse())) Fl::belowmouse(o);
    break;
  }
  return ret;
}


Link: http://www.fltk.org/str.php?L2250
Version: 1.1.10

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

Reply via email to