From 5999ba6a5edaa705c19295793d875a2a66fae2d3 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 14 May 2024 23:27:26 +0400 Subject: Avoid changing the view offset if size didn't change --- src/layout/workspace.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index eed9635a..4a6ad91c 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -1256,6 +1256,10 @@ impl Workspace { } if col_idx == self.active_column_idx { + // If offset == 0, then don't mess with the view or the gesture. Some clients (Firefox, + // Chromium, Electron) currently don't commit after the ack of a configure that drops + // the Resizing state, which can trigger this code path for a while. + let resize = if offset != 0 { resize } else { None }; if let Some(resize) = resize { // If this is an interactive resize commit of an active window, then we need to // either preserve the view offset or adjust it accordingly. -- cgit