Merge branch 'red/rc-chrome-w4' into area/chrome-fw

This commit is contained in:
Martin Ball committed 2026-11-18 16:36:07 +00:00
commit 602c1d2aaf
3 files changed
+3 -7

No files matched your search

@@ -449,10 +449,6 @@ impl BodyHooks<'_> {
_ => return,
};
let Some(began) = self.mode.began else { return };
eprintln!(
"DIAG escape_during_a_pane_title_drag_cancels_it_and_reaches_nothing_else: began={began:?} core_rect={rect:?} current={:?}/{:?}",
current.pos, current.size
);
let (dx, dy, _) = grip.map_or((0, 0, CursorIcon::Grab), |index| GRIPS[index]);
let kind = if grip.is_some() { PlacementKind::Size(edge_of(dx, dy)) } else { PlacementKind::Move };
let next = match pos {
+3 -2
View File
@@ -500,8 +500,9 @@ impl Container for FloatingGroup<'_> {
if let Some(column) = self.column.filter(|column| column.collapsed.is_some()) {
// The collapsed window moves; the rect keeps its expanded size.
change.rect = column.kept(change.rect, self.rect, self.header, self.rtl);
} else if fitted && change.kind == PlacementKind::Move {
// A window its content sizes moves; the rect keeps its size.
} else if (fitted || self.sized == Sizing::Content) && change.kind == PlacementKind::Move {
// A window its content sizes moves (a cancel too, which reports the rect from before the gesture); the
// rect keeps the size the caller gave, not the one measured from the body.
change.rect = Rect::from_min_size(change.rect.min, self.rect.size());
} else if self.minimized {
change.rect = Rect::from_min_size(change.rect.min, Vec2::new(change.rect.width(), self.rect.height()));
@@ -794,7 +794,6 @@ fn show_floating<P: Clone + Eq + Hash + Debug + Send + Sync + 'static>(ui: &mut
// A cancelled move or resize (Escape) reports the rect from before the gesture: the app takes it back, as the
// steps of the gesture moved its kept rect. A click on the title with no drag reports nothing.
if let Some(change) = shown.placed {
eprintln!("DIAG escape_during_a_pane_title_drag_cancels_it_and_reaches_nothing_else: placed {:?} kind {:?} given {rect:?}", change.rect, change.kind);
pass.sink.borrow_mut().push(PaneRequest::FloatRect(pane.pane.clone(), change.rect));
}
if shown.minimized_toggled {