diff options
-rw-r--r-- | .config/qtile/config.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py index f0bf0fd..34d0921 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -289,7 +289,7 @@ dgroups_key_binder = None dgroups_app_rules = [] follow_mouse_focus = True bring_front_click = False -cursor_warp = False +cursor_warp = True floating_layout = layout.Floating() auto_fullscreen = True wmname = "LG3D" @@ -302,3 +302,18 @@ def main(qtile): @hook.subscribe.screen_change def restart_on_randr(qtile, ev): qtile.cmd_restart() + +@hook.subscribe.client_new +def floating_dialogs(window): + float_clients = [ + 'DialogWindow', + 'HelpBrowser', + ] + wm_class = window.window.get_wm_class() + for client in float_clients: + if client in wm_class: + window.floating = True + transient = window.window.get_wm_transient_for() + if transient: + window.floating = True + |