From 9b33c37645d8a77356c59b87b4e96f95d0a86bf6 Mon Sep 17 00:00:00 2001 From: elParaguayo Date: Sat, 15 Jun 2024 21:32:05 +0100 Subject: [PATCH] Centre windows matching float rules When we float windows matching the user's `float_rules`, let's make sure the window is centred in the screen. --- libqtile/group.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libqtile/group.py b/libqtile/group.py index 88561de438..7707abf959 100644 --- a/libqtile/group.py +++ b/libqtile/group.py @@ -257,6 +257,7 @@ def add(self, win, focus=True, force=False): win._float_state = FloatStates.FULLSCREEN elif self.floating_layout.match(win) and not win.fullscreen: win._float_state = FloatStates.FLOATING + win.center() if self.qtile.config.floats_kept_above: win.keep_above(enable=True) if win.floating and not win.fullscreen: