Skip to content

Commit 8b366ab

Browse files
author
mikigo
committed
fix: 由于窗管团队修改获取窗口信息的返回值,导致Wayland下相对位移定位方案报错,YouQu进行适配。
Description: Log:
1 parent 7627d51 commit 8b366ab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/wayland_wininfo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def window_info(self):
119119
for i in range(int(range_index)):
120120
window_info = windows_pointer[i]
121121
resource_name = window_info.resourceName.decode("utf-8")
122+
if " " in resource_name:
123+
resource_name = resource_name.split(" ")[0]
122124
if not resource_name:
123125
resource_name = (
124126
os.popen(f"cat /proc/{window_info.pid}/cmdline").read().strip("\x00")

0 commit comments

Comments
 (0)