Bug fixing

This commit is contained in:
Alexis Jhon Gaspar 2023-10-21 00:18:19 +08:00
parent 3b382f669e
commit 8201cfb525

View file

@ -136,7 +136,7 @@ static Bool npisrelative = False;
"rootid=\"$(xwininfo -root | grep \"Window id\" | cut -d ' ' -f 4)\" &&" \
"wid=\"$(xwininfo -children -id $1 | grep '^ 0x' |" \
"sed -e 's@^ *\\(0x[0-9a-f]*\\) \"\\([^\"]*\\)\".*@\\1 \\2@' |" \
"dmenu -l 5 -p 'Detach: ' | cut -d ' ' -f 1)\" &&" \
"dmenu -i -l 5 -p 'Detach: ' | cut -d ' ' -f 1)\" &&" \
"xwininfo -id $wid -stats | grep -q 'IsUnMapped' && xdotool windowmap $wid;" \
"xdotool windowreparent \"$wid\" \"$rootid\" &&" \
"xdotool windowactivate $1", \