From 376005cdc717551c9db8d8a430a5efdb5b72fe07 Mon Sep 17 00:00:00 2001 From: Schark Date: Thu, 26 Mar 2026 18:12:37 -0400 Subject: Fix window detection! --- cs2pov/automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cs2pov/automation.py b/cs2pov/automation.py index ee8347d..1547664 100644 --- a/cs2pov/automation.py +++ b/cs2pov/automation.py @@ -30,7 +30,7 @@ def find_cs2_window(display: str = ":0") -> Optional[str]: try: result = subprocess.run( - ["xdotool", "search", "--class", "cs2"], + ["xdotool", "search", "--class", "^cs2$"], capture_output=True, text=True, timeout=5, -- cgit v1.2.3-18-g5258