Avoid changing the view offset if size didn't change
Browse files at this commit5999ba6a5edaa705c19295793d875a2a66fae2d3Parent: 94a9b481 changed file +4 -0
- src/layout/workspace.rs +4 -0
src/layout/workspace.rsmodified+4 -0
| @@ -1256,6 +1256,10 @@ impl<W: LayoutElement> Workspace<W> { | ||
| 1256 | 1256 | } |
| 1257 | 1257 | |
| 1258 | 1258 | 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 }; | |
| 1259 | 1263 | if let Some(resize) = resize { |
| 1260 | 1264 | // If this is an interactive resize commit of an active window, then we need to |
| 1261 | 1265 | // either preserve the view offset or adjust it accordingly. |