summaryrefslogtreecommitdiff
path: root/FL/Fl_Group.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-29 14:57:54 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-29 14:57:54 +0200
commit1c6a0c1a8fb254945179276ecbd359cc1926fbb1 (patch)
tree7ee3c70b3a49b60cbb62e80d3f5627ca8b37ee0e /FL/Fl_Group.H
parent55daede41d451d90d8fa71aa377e0f5e3a4eaf75 (diff)
Wayland: fix interactive moving and resizing of a subwindow - cont'd (#987)
This fix requires to be able to recognize whether Fl_Wayland_Window_Driver::resize() is called by a resize operation of an encompassing widget or not. To do that, private static int variable group_resize_depth_ is added to class Fl_Group and an accessor to this variable is added to class Fl_Window_Driver.
Diffstat (limited to 'FL/Fl_Group.H')
-rw-r--r--FL/Fl_Group.H3
1 files changed, 2 insertions, 1 deletions
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H
index 173f8754b..9f76b4fd1 100644
--- a/FL/Fl_Group.H
+++ b/FL/Fl_Group.H
@@ -54,7 +54,7 @@ class Fl_Rect;
reason \p FL_REASON_CLOSED.
*/
class FL_EXPORT Fl_Group : public Fl_Widget {
-
+ friend class Fl_Window_Driver;
union {
Fl_Widget** array_; // used if group has two or more children or NULL
Fl_Widget* child1_; // used if group has one child or NULL
@@ -67,6 +67,7 @@ class FL_EXPORT Fl_Group : public Fl_Widget {
int navigation(int);
static Fl_Group *current_;
+ static int group_resize_depth_;
// unimplemented copy ctor and assignment operator
Fl_Group(const Fl_Group&);