From bd8f33bc8766a2871b47359e6398a44bc0ce4018 Mon Sep 17 00:00:00 2001 From: flifloo Date: Mon, 10 Feb 2020 13:53:49 +0100 Subject: [PATCH] Change mouse binding for better windows floating managment --- config.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/config.py b/config.py index 010daa2..b9d856f 100644 --- a/config.py +++ b/config.py @@ -165,18 +165,16 @@ screens = [ # Drag floating layouts. mouse = [ - Drag([mod], "Button1", lazy.window.set_position_floating(), - start=lazy.window.get_position()), - Drag([mod], "Button3", lazy.window.set_size_floating(), - start=lazy.window.get_size()), - Click([mod], "Button2", lazy.window.bring_to_front()) + Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), + Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), + Click([mod], "Button2", lazy.window.toggle_floating()), ] dgroups_key_binder = None dgroups_app_rules = [] # type: List follow_mouse_focus = True -bring_front_click = True +bring_front_click = False cursor_warp = False floating_layout = layout.Floating(float_rules=[ {'wmclass': 'confirm'},