Skip to content

Commit

Permalink
ALL: Added *_CENTERED positions. Added coordinates (x, y) as input to…
Browse files Browse the repository at this point in the history
… setPosition() and arrangeMonitor()

LINUX: Improved performance thru ewmhlib features
  • Loading branch information
Kalmat committed Sep 15, 2023
1 parent e893a7c commit 18e785d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/type-checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "docs/requirements.txt"
- run: pip install -r "docs/requirements.txt"
cache-dependency-path: "requirements.txt"
- run: pip install -r "requirements.txt"
- run: mypy . --python-version=${{ matrix.python-version }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ If you want to use this code or contribute, you can either:
* Create a fork of the [repository](https://github.com/Kalmat/PyMonCtl), or
* [Download the repository](https://github.com/Kalmat/PyMonCtl/archive/refs/heads/master.zip), uncompress, and open it on your IDE of choice (e.g. PyCharm)

Be sure you install all dependencies described on `docs/requirements.txt` by using pip
Be sure you install all dependencies described on `requirements.txt` by using pip

python3 -m pip install -r requirements.txt

Expand Down
Binary file modified dist/PyMonCtl-0.6-py3-none-any.whl
Binary file not shown.
2 changes: 2 additions & 0 deletions src/ewmhlib/_ewmhlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,8 @@ def getName(self) -> Optional[str]:
# Thanks to cedricscheepers - https://github.com/cedricscheepers for pointing out this issue
ret: Optional[Xlib.protocol.request.GetProperty] = self.getProperty(Window.NAME)
res: Optional[Union[List[int], List[str]]] = getPropertyValue(ret, display=self.display)
# Some (older) apps do not set _NET_WM_NAME property, but WM_NAME. Using it as fallback
# Thans to ReaperMantis - https://github.com/ReaperMantis for finding a solution!
if res:
return str(res[0])
ret = self.getProperty(Window.LEGACY_NAME)
Expand Down

0 comments on commit 18e785d

Please sign in to comment.