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 <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
Stacy Harper 2021-05-09 19:19:01 +02:00 committed by Anjandev Momi
parent cafd100d28
commit c81940a74e

View file

@ -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