diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-09-25 10:23:47 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-09-25 10:23:47 +0200 |
| commit | 84eeac5892c47c657deb961ef3aa88076c8ad651 (patch) | |
| tree | 349c0940a5e96902d4f20343a0f16041b25ee0c1 | |
| parent | a333817f4178d944685fc787bd389097e8d85aca (diff) | |
Fix issue about Fl_Tabs and maximizing window under Windows (#1075)
| -rw-r--r-- | src/Fl_Tabs.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index ffca48f11..89394ac05 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -528,6 +528,7 @@ int Fl_Tabs::handle(int event) { static int initial_x = 0; static int initial_tab_offset = 0; static int forward_motion_to_group = 0; + static Fl_Widget *o_push_drag = NULL; Fl_Widget *o; int i; @@ -563,11 +564,15 @@ int Fl_Tabs::handle(int event) { } /* FALLTHROUGH */ case FL_DRAG: + o_push_drag = which(Fl::event_x(), Fl::event_y()); case FL_RELEASE: if (forward_motion_to_group) { return Fl_Group::handle(event); } o = which(Fl::event_x(), Fl::event_y()); + if (event == FL_RELEASE && o != o_push_drag) { // see issue #1075 + return 1; + } if ( (overflow_type == OVERFLOW_DRAG) || (overflow_type == OVERFLOW_PULLDOWN) ) { if (tab_pos[children()] < w() && tab_offset == 0) { // fall through |
