Skip to content

Commit

Permalink
fix lack of pid
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo committed Sep 26, 2024
1 parent cdb331e commit 9be48b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions janela/_impl/mac.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def list_windows(self) -> List[Window]:
width=int(bounds.get("Width", 0)),
height=int(bounds.get("Height", 0)),
is_active=window_id == self.get_active_window_id(),
pid=win["kCGWindowOwnerPID"],
)
windows.append(window)
return windows
Expand Down
1 change: 1 addition & 0 deletions janela/interfaces/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Window:
height: int
is_active: bool
wm: "WindowManager" = field(repr=False)
pid: Optional[int] = field(default=None)

@property
def monitor(self) -> Optional[Monitor]:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "janela"
version = "0.0.6"
version = "0.0.7"
description = "A simple tool to automate window management"
authors = ["Gustavo <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 9be48b7

Please sign in to comment.