Skip to content

Commit

Permalink
Fix Linux Window Search Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Apr 9, 2024
1 parent 93634e6 commit d8b1992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdp_patches/input/os_base/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def search_windows_by_pid(query_tree, pid: int):
window_x, window_y = parent_offset_coords.x, parent_offset_coords.y

# Filter out non-browser windows, for example the Taskbar or Info Bars
if (title == b"google-chrome") or (title == b"chrome") or (window_x == window_y) or not all((window_x, window_y)):
if (b"google-chrome" in title) or (title == b"chrome"): # or (window_x == window_y) or not all((window_x, window_y))
continue

self.browser_window = window
Expand Down

0 comments on commit d8b1992

Please sign in to comment.