Skip to content

Commit

Permalink
LINUX: Improved Wayland support for some apps which (surprisingly) wo…
Browse files Browse the repository at this point in the history
…rk using X11/XOrg.
  • Loading branch information
Kalmat committed Sep 20, 2023
1 parent fa35522 commit 9296e96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified dist/PyWinCtl-0.3-py3-none-any.whl
Binary file not shown.
2 changes: 1 addition & 1 deletion src/pywinctl/_pywinctl_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def getActiveWindow() -> Optional[LinuxWindow]:
# swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true).pid' -> Not working (socket issue)
# pynput / mouse --> Not working (no global events allowed, only application events)
_, activeWindow = _WgetAllWindows()
if activeWindow:
if activeWindow and activeWindow.get("id", None):
win_id = str(activeWindow["id"])
if not win_id:
win_id = defaultEwmhRoot.getActiveWindow()
Expand Down

0 comments on commit 9296e96

Please sign in to comment.