From 0cabcb9f46bcaf4d8ef5a216adbee17002469747 Mon Sep 17 00:00:00 2001 From: aclist Date: Tue, 9 May 2023 09:23:26 +0900 Subject: [PATCH] fix: use same WM_CLASS name for both clients --- changelog.md | 4 ++++ dzgui.sh | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 7e7b33a..5de74ac 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,10 @@ - Custom query API - Standardize dialogs +## [3.3.0-rc.20] 2023-05-09 +### Changed +- Use same WM_CLASS targeting method for beta and stable clients + ## [3.3.0-rc.19] 2023-05-09 ### Fixed - Case folding when targeting WM_CLASS diff --git a/dzgui.sh b/dzgui.sh index e7ea656..f8632cc 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/bin/bash set -o pipefail -version=3.3.0-rc.19 +version=3.3.0-rc.20 aid=221100 game="dayz" @@ -560,11 +560,7 @@ update_history(){ echo -e "${old}${ip}" > "$hist_file" } is_steam_running(){ - if [[ $(is_beta) -eq 0 ]]; then - wmctrl -l | grep "Steam Games List" - else - wmctrl -ilx | awk 'tolower($3) == "steam.steam"' - fi + wmctrl -ilx | awk 'tolower($3) == "steam.steam"' } connect(){ #TODO: sanitize/validate input