From c81940a74e4f409e11c4095b4affc9b7fee90202 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Sun, 9 May 2021 19:19:01 +0200 Subject: [PATCH] fix a bug as WMCLASS can be '"gl", "mpv"' I took the WMCLASS linecode from the appmenu where we do not strip the full line Signed-off-by: Stacy Harper Signed-off-by: Anjandev Momi --- scripts/core/sxmo_inputhandler.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/core/sxmo_inputhandler.sh b/scripts/core/sxmo_inputhandler.sh index 936cbf0..8a6e5de 100755 --- a/scripts/core/sxmo_inputhandler.sh +++ b/scripts/core/sxmo_inputhandler.sh @@ -10,7 +10,7 @@ ACTION="$1" . "$(dirname "$0")/sxmo_common.sh" XPROPOUT="$(xprop -id "$(xdotool getactivewindow)")" -WMCLASS="$(echo "$XPROPOUT" | grep WM_CLASS | cut -d ' ' -f3- | cut -d ' ' -f1 | tr -d '\",')" +WMCLASS="$(echo "$XPROPOUT" | grep WM_CLASS | cut -d ' ' -f3-)" HANDLE=1 if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/inputhandler ]; then