Disabling swallow, I need to find better way.
This commit is contained in:
parent
7c253b549c
commit
99e8ee4eb7
1 changed files with 18 additions and 18 deletions
|
@ -170,25 +170,25 @@ floating_layout = layout.Floating(
|
||||||
border_width=2,
|
border_width=2,
|
||||||
)
|
)
|
||||||
|
|
||||||
@hook.subscribe.client_new
|
# @hook.subscribe.client_new
|
||||||
def _swallow(window):
|
# def _swallow(window):
|
||||||
pid = window.window.get_net_wm_pid()
|
# pid = window.window.get_net_wm_pid()
|
||||||
ppid = psutil.Process(pid).ppid()
|
# ppid = psutil.Process(pid).ppid()
|
||||||
cpids = {c.window.get_net_wm_pid(): wid for wid, c in window.qtile.windows_map.items()}
|
# cpids = {c.window.get_net_wm_pid(): wid for wid, c in window.qtile.windows_map.items()}
|
||||||
for i in range(5):
|
# for i in range(5):
|
||||||
if not ppid:
|
# if not ppid:
|
||||||
return
|
# return
|
||||||
if ppid in cpids:
|
# if ppid in cpids:
|
||||||
parent = window.qtile.windows_map.get(cpids[ppid])
|
# parent = window.qtile.windows_map.get(cpids[ppid])
|
||||||
parent.minimized = True
|
# parent.minimized = True
|
||||||
window.parent = parent
|
# window.parent = parent
|
||||||
return
|
# return
|
||||||
ppid = psutil.Process(ppid).ppid()
|
# ppid = psutil.Process(ppid).ppid()
|
||||||
|
|
||||||
@hook.subscribe.client_killed
|
# @hook.subscribe.client_killed
|
||||||
def _unswallow(window):
|
# def _unswallow(window):
|
||||||
if hasattr(window, 'parent'):
|
# if hasattr(window, 'parent'):
|
||||||
window.parent.minimized = False
|
# window.parent.minimized = False
|
||||||
|
|
||||||
auto_fullscreen = True
|
auto_fullscreen = True
|
||||||
auto_minimize = True
|
auto_minimize = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue