My collection of plugins for the Qtile window manager.
git clone https://mcol.xyz/code/qtools
Log | Files | Refs | README

commit 63243929c7468d0bf5bd8d0850920dead38e65ad
parent 4d5855043b6278b513a5c982903c510cf29b3daf
Author: mcol <mcol@posteo.net>
Date:   Fri,  4 Sep 2020 22:43:14 +0100

focus: increase minimal distance to focus

Diffstat:
Mqtools/focus/focus.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qtools/focus/focus.py b/qtools/focus/focus.py @@ -73,7 +73,7 @@ def _focus_window(qtile, dir, axis): if isinstance(w, Screen) or not w.minimized: pos = getattr(w, axis) + getattr(w, dim) / 2 gap = dir * (pos - cur_pos) - if gap > 0: + if gap > 5: band_pos = getattr(w, band_axis) + getattr(w, band_dim) / 2 if band_min < band_pos < band_max: if gap < dist: