From 1c6a0c1a8fb254945179276ecbd359cc1926fbb1 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 29 Jun 2024 14:57:54 +0200 Subject: 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. --- FL/Fl_Group.H | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'FL') 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&); -- cgit v1.2.3