OSDN Git Service

focuswin check
authorpaperbenni <paperbenni@gmail.com>
Thu, 26 Dec 2019 10:48:53 +0000 (11:48 +0100)
committerpaperbenni <paperbenni@gmail.com>
Thu, 26 Dec 2019 10:48:53 +0000 (11:48 +0100)
programs/dswitch

index 93e3b67..415486d 100755 (executable)
@@ -79,7 +79,7 @@ if ! wincomp "$(pfw)" "$WID"; then
         fi
         focuswin "$WID"
     else
-        focuswin "$OLD"
+        [ "$OLD" = "0x000001e1" ] || focuswin "$OLD"
         xdotool key 'super+comma'
         focuswin "$WID"
     fi