diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-05 18:14:42 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-05 18:14:42 +0400 |
| commit | 18e29d002845f2df8dae7dd03e3688c427f7d303 (patch) | |
| tree | 2ac9694fa4fbb39b54e347775c26d97525747b32 /src/layout.rs | |
| parent | 934183ef003714f4d8dedeba55396c76ec8d5e4c (diff) | |
| download | niri-18e29d002845f2df8dae7dd03e3688c427f7d303.tar.gz niri-18e29d002845f2df8dae7dd03e3688c427f7d303.tar.bz2 niri-18e29d002845f2df8dae7dd03e3688c427f7d303.zip | |
layout: Fix input to non-active window in column
Diffstat (limited to 'src/layout.rs')
| -rw-r--r-- | src/layout.rs | 11 |
1 files 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<W: LayoutElement> Workspace<W> { 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<Window> { 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<Window> { 1., )); } - y += win.geometry().size.h + PADDING; + + y += geom.size.h + PADDING; } x += col.size().w + PADDING; |
