summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-02-24 21:51:38 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-02-24 21:51:38 +0000
commit9cca0a6c9afe50e2baf64cb37ad091d3eb1eb623 (patch)
tree7c9be7058cd8440d87cc154d9a0426fea39e08cd
parent2df3459457eb7c83fea191fa6105fca0c8ca7e8d (diff)
Added QNX bug workaround for menu handling (STR #704)
src/Fl_Menu.cxx: - menuwindow::handle(): #ifdef QNX check for done menu git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES1
-rw-r--r--src/Fl_Menu.cxx5
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index b932c5361..ff748d2fb 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,7 @@
CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692)
+ - Added QNX bug workaround for menu handling (STR #704)
- Added Greg Ercolano's simple Fl_Input_Choice widget
which is a combination of the Fl_Input and
Fl_Menu_Button widgets (STR #650)
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index 470de2f68..b732a94b3 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -597,6 +597,11 @@ int menuwindow::handle(int e) {
case FL_MOVE:
case FL_PUSH:
case FL_DRAG: {
+#ifdef __QNX__
+ // STR 704: workaround QNX X11 bug - in QNX an event FL_MOVE is sent
+ // right after FL_RELEASE...
+ if (pp.state == DONE_STATE) return 1;
+#endif // __QNX__
int mx = Fl::event_x_root();
int my = Fl::event_y_root();
int item=0; int mymenu;