Skip to content

Commit

Permalink
Added getDisplays(), getRoots(), getScreenFromWindow(), getRootFromWi…
Browse files Browse the repository at this point in the history
…ndow(), getScreenFromRoot() functions.

Added control for closed display connections, including defaultDisplay and related.
Optimized performance in many functions and methods.
Fixed and added WM_NAME as fallback for apps not setting _NET_WM_NAME property.
  • Loading branch information
Kalmat committed Sep 11, 2023
1 parent c01c0b8 commit 433ced3
Show file tree
Hide file tree
Showing 8 changed files with 152 additions and 82 deletions.
2 changes: 2 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
EWMHlib authors, contributors and maintainers:

Kalmat https://github.com/Kalmat
Mestrelion https://github.com/MestreLion
ReaperMantis https://github.com/ReaperMantis
Binary file modified dist/EWMHlib-0.0.1-py3-none-any.whl
Binary file not shown.
16 changes: 12 additions & 4 deletions src/ewmhlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys

__all__ = [
"version", "displaysCount", "getDisplaysNames", "getDisplaysInfo", "getDisplayFromRoot", "getDisplayFromWindow",
"version", "displaysCount", "getDisplays", "getDisplaysInfo", "getRoots",
"defaultDisplay", "defaultScreen", "defaultRoot", "defaultEwmhRoot",
"getDisplayFromRoot", "getScreenFromRoot",
"getDisplayFromWindow", "getScreenFromWindow", "getRootFromWindow",
"getProperty", "getPropertyValue", "changeProperty", "sendMessage",
"defaultDisplay", "defaultScreen", "defaultRoot", "defaultRootWindow", "RootWindow", "EwmhWindow",
"EwmhRoot", "EwmhWindow",
"Props", "Structs"
]

Expand All @@ -16,8 +21,11 @@ def version(numberOnly: bool = True):
return ("" if numberOnly else "EWMHlib-")+__version__


from ._main import (displaysCount, getDisplaysNames, getDisplaysInfo, getDisplayFromRoot, getDisplayFromWindow,
from ._main import (displaysCount, getDisplays, getDisplaysInfo, getRoots,
defaultDisplay, defaultScreen, defaultRoot, defaultEwmhRoot,
getDisplayFromRoot, getScreenFromRoot,
getDisplayFromWindow, getScreenFromWindow, getRootFromWindow,
getProperty, getPropertyValue, changeProperty, sendMessage,
defaultDisplay, defaultScreen, defaultRoot, RootWindow, defaultRootWindow, EwmhWindow,
EwmhRoot, EwmhWindow,
Props, Structs
)
Loading

0 comments on commit 433ced3

Please sign in to comment.