Skip to content

Commit

Permalink
trailfocus.py: Track upstream ipc-rules changes (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau authored Mar 15, 2024
1 parent 7d94a21 commit e14b0c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ipc-scripts/trailfocus.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ def sort_views():
i = 0
timestamps = []
for v in views:
if v["output"] != o["name"] or v["role"] == "desktop-environment":
if v["output-name"] != o["name"] or v["role"] == "desktop-environment":
continue
if not v["state"]["mapped"]:
if not v["mapped"]:
continue
if "parent" in v and v["state"]["minimized"]:
if "parent" in v and v["minimized"]:
continue
if v["last-focus-timestamp"] <= 0:
continue
Expand All @@ -40,11 +40,11 @@ def sort_views():
for v in views:
if t != v["last-focus-timestamp"]:
continue
if v["output"] != o["name"] or v["role"] == "desktop-environment":
if v["output-name"] != o["name"] or v["role"] == "desktop-environment":
break
if not v["state"]["mapped"]:
if not v["mapped"]:
break
if "parent" in v and v["state"]["minimized"]:
if "parent" in v and v["minimized"]:
break
o_value += o_step
b_value += b_step
Expand Down

0 comments on commit e14b0c9

Please sign in to comment.