From 18e29d002845f2df8dae7dd03e3688c427f7d303 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 5 Sep 2023 18:14:42 +0400 Subject: layout: Fix input to non-active window in column --- src/layout.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/layout.rs b/src/layout.rs index 06608466..2b7140dc 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -1584,9 +1584,9 @@ impl Workspace { let mut y = PADDING; for win in &col.windows { - if win != active_win { - let geom = win.geometry(); + let geom = win.geometry(); + if win != active_win { // x, y point at the top-left of the window geometry. let mut win_pos = Point::from((x, y)) - geom.loc; if col.is_fullscreen { @@ -1718,9 +1718,9 @@ impl Workspace { let mut y = PADDING; for win in &col.windows { - if win != active_win { - let geom = win.geometry(); + let geom = win.geometry(); + if win != active_win { let mut win_pos = Point::from((x - view_pos, y)) - geom.loc; if col.is_fullscreen { // FIXME: fullscreen windows are missing left padding @@ -1735,7 +1735,8 @@ impl Workspace { 1., )); } - y += win.geometry().size.h + PADDING; + + y += geom.size.h + PADDING; } x += col.size().w + PADDING; -- cgit