diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-11-19 18:28:55 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-11-19 18:28:55 +0000 |
| commit | fb4fe5642abe7b68b99863ab0cf997b744ccbeaf (patch) | |
| tree | d0ef5e090899028b5b99b7f85955d4482956d696 /src | |
| parent | 1acc39c5d8d5b3db88abfd008699dadb8aade2b9 (diff) | |
Don't send FL_RELEASE events for buttons 4 and 5 (mouse wheel)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index c69238cb5..9d86fc019 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_x.cxx,v 1.24.2.24.2.4 2001/10/27 03:45:29 easysw Exp $" +// "$Id: Fl_x.cxx,v 1.24.2.24.2.5 2001/11/19 18:28:55 easysw Exp $" // // X specific code for the Fast Light Tool Kit (FLTK). // @@ -476,6 +476,8 @@ int fl_handle(const XEvent& xevent) Fl::e_keysym = FL_Button + xevent.xbutton.button; set_event_xy(); Fl::e_state &= ~(FL_BUTTON1 << (xevent.xbutton.button-1)); + if (xevent.xbutton.button == Button4 || + xevent.xbutton.button == Button5) return 0; event = FL_RELEASE; break; @@ -934,5 +936,5 @@ void Fl_Window::make_current() { #endif // -// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.4 2001/10/27 03:45:29 easysw Exp $". +// End of "$Id: Fl_x.cxx,v 1.24.2.24.2.5 2001/11/19 18:28:55 easysw Exp $". // |
