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>
master
Stacy Harper 4 years ago committed by Anjandev Momi
parent cafd100d28
commit c81940a74e
  1. 2
      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

Loading…
Cancel
Save