forge
Explore
Log in

Don't you dare go Hollow

Avoid changing the view offset if size didn't change

Browse files at this commit

5999ba6a5edaa705c19295793d875a2a66fae2d3Ivan MolodetskikhParent: 94a9b48
src/layout/workspace.rsmodified+4 -0
@@ -1256,6 +1256,10 @@ impl<W: LayoutElement> Workspace<W> {
12561256 }
12571257
12581258 if col_idx == self.active_column_idx {
1259+ // If offset == 0, then don't mess with the view or the gesture. Some clients (Firefox,
1260+ // Chromium, Electron) currently don't commit after the ack of a configure that drops
1261+ // the Resizing state, which can trigger this code path for a while.
1262+ let resize = if offset != 0 { resize } else { None };
12591263 if let Some(resize) = resize {
12601264 // If this is an interactive resize commit of an active window, then we need to
12611265 // either preserve the view offset or adjust it accordingly.