From 99e8ee4eb70cb382f69c8e6a3c7e2f9189b248fb Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Sun, 31 Jul 2022 19:07:38 +0200 Subject: [PATCH] Disabling swallow, I need to find better way. --- _desktop/qtile/config.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/_desktop/qtile/config.py b/_desktop/qtile/config.py index 4a333f0..01b3f68 100644 --- a/_desktop/qtile/config.py +++ b/_desktop/qtile/config.py @@ -170,25 +170,25 @@ floating_layout = layout.Floating( border_width=2, ) -@hook.subscribe.client_new -def _swallow(window): - pid = window.window.get_net_wm_pid() - ppid = psutil.Process(pid).ppid() - cpids = {c.window.get_net_wm_pid(): wid for wid, c in window.qtile.windows_map.items()} - for i in range(5): - if not ppid: - return - if ppid in cpids: - parent = window.qtile.windows_map.get(cpids[ppid]) - parent.minimized = True - window.parent = parent - return - ppid = psutil.Process(ppid).ppid() +# @hook.subscribe.client_new +# def _swallow(window): +# pid = window.window.get_net_wm_pid() +# ppid = psutil.Process(pid).ppid() +# cpids = {c.window.get_net_wm_pid(): wid for wid, c in window.qtile.windows_map.items()} +# for i in range(5): +# if not ppid: +# return +# if ppid in cpids: +# parent = window.qtile.windows_map.get(cpids[ppid]) +# parent.minimized = True +# window.parent = parent +# return +# ppid = psutil.Process(ppid).ppid() -@hook.subscribe.client_killed -def _unswallow(window): - if hasattr(window, 'parent'): - window.parent.minimized = False +# @hook.subscribe.client_killed +# def _unswallow(window): +# if hasattr(window, 'parent'): +# window.parent.minimized = False auto_fullscreen = True auto_minimize = True