summaryrefslogtreecommitdiff
path: root/src/Fl_Tile.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-07-26 16:01:16 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-07-26 16:01:16 +0200
commitb740c48ee8505f93662065384d84b449d5e33438 (patch)
treee806e2a3774471c95a9542585ef0b2d3c1cd4dec /src/Fl_Tile.cxx
parent3cc12d203f30f29a8920b85ee98c46f4c9bb0bcb (diff)
Wayland: restore support of Fl_Tile with subwindow widget
Diffstat (limited to 'src/Fl_Tile.cxx')
-rw-r--r--src/Fl_Tile.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Tile.cxx b/src/Fl_Tile.cxx
index efc2478b7..9874a570b 100644
--- a/src/Fl_Tile.cxx
+++ b/src/Fl_Tile.cxx
@@ -482,6 +482,8 @@ void Fl_Tile::move_intersection(int oldx, int oldy, int newx, int newy) {
}
}
+bool Fl_Tile::in_drag_intersection_ = false;
+
/**
Drags the intersection at (\p oldx,\p oldy) to (\p newx,\p newy).
@@ -532,10 +534,12 @@ void Fl_Tile::drag_intersection(int oldx, int oldy, int newx, int newy) {
}
}
// resize all children that have changed in size
+ in_drag_intersection_ = true;
for (i = 0; i < children(); i++) {
Fl_Rect &r = final_size[i];
child(i)->damage_resize(r.x(), r.y(), r.w(), r.h());
}
+ in_drag_intersection_ = false;
delete[] final_size;
} else {
move_intersection(oldx, oldy, newx, newy);