summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2000-11-20 02:49:40 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2000-11-20 02:49:40 +0000
commit41df4bf0d1153d14b276d9effd0371ed22e4ad98 (patch)
tree41f22e29878fbeb7e7278fb509670bc634f2e7af
parent739e9411e7dd22adce632d9aea3c8aedfef87107 (diff)
Fl::below_mouse() was incorrectly clearing e_is_click; this prevented
any double-clicks from getting through... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl.cxx6
-rw-r--r--src/Fl_x.cxx11
2 files changed, 9 insertions, 8 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 331bc295e..363138b75 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl.cxx,v 1.24.2.32 2000/10/21 20:01:55 spitzak Exp $"
+// "$Id: Fl.cxx,v 1.24.2.33 2000/11/20 02:49:40 easysw Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <string.h>
+
//
// Globals...
//
@@ -343,7 +344,6 @@ void Fl::belowmouse(Fl_Widget *o) {
if (grab()) return; // don't do anything while grab is on
Fl_Widget *p = belowmouse_;
if (o != p) {
- event_is_click(0);
belowmouse_ = o;
for (; p && !p->contains(o); p = p->parent()) p->handle(FL_LEAVE);
}
@@ -734,5 +734,5 @@ void Fl_Window::flush() {
}
//
-// End of "$Id: Fl.cxx,v 1.24.2.32 2000/10/21 20:01:55 spitzak Exp $".
+// End of "$Id: Fl.cxx,v 1.24.2.33 2000/11/20 02:49:40 easysw Exp $".
//
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index e7f6e5aea..2e330f3a7 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_x.cxx,v 1.24.2.20 2000/10/21 20:01:56 spitzak Exp $"
+// "$Id: Fl_x.cxx,v 1.24.2.21 2000/11/20 02:49:40 easysw Exp $"
//
// X specific code for the Fast Light Tool Kit (FLTK).
//
@@ -340,8 +340,8 @@ static void set_event_xy() {
if (fl_key_vector[18]&0x18) Fl::e_state |= FL_META;
#endif
// turn off is_click if enough time or mouse movement has passed:
- if (abs(Fl::e_x_root-px)+abs(Fl::e_y_root-py) > 3
- || fl_event_time >= ptime+1000)
+ if (abs(Fl::e_x_root-px)+abs(Fl::e_y_root-py) > 3 ||
+ fl_event_time >= ptime+1000)
Fl::e_is_click = 0;
}
@@ -520,7 +520,8 @@ int fl_handle(const XEvent& xevent)
Fl::e_keysym = int(keysym);
Fl::e_text = buffer;
Fl::e_length = len;
- set_event_xy(); Fl::e_is_click = 0;
+ set_event_xy();
+ Fl::e_is_click = 0;
if (Fl::event_state(FL_CTRL) && keysym == '-') buffer[0] = 0x1f; // ^_
event = FL_KEYBOARD;
break;}
@@ -897,5 +898,5 @@ void Fl_Window::make_current() {
#endif
//
-// End of "$Id: Fl_x.cxx,v 1.24.2.20 2000/10/21 20:01:56 spitzak Exp $".
+// End of "$Id: Fl_x.cxx,v 1.24.2.21 2000/11/20 02:49:40 easysw Exp $".
//