xwinwrap icon indicating copy to clipboard operation
xwinwrap copied to clipboard

"WID" not replaced in args if passed as `wid=WID`

Open OnionMaster03 opened this issue 5 years ago • 4 comments

When I issue this command: xwinwrap -fs -ni -s -nf -b -un -argb -fdt -sh circle -- gifview -w=WID mygif.gif -a it returns this output:

gifview: option ‘-w WID’ is invalid
gifview: (Possibilities are ‘root’ and ‘any integer’.)

I tried with: xwinwrap -fs -ni -s -nf -b -un -argb -fdt -sh circle -- echo WID and it actually returns:

0x6800002
echo died, exit status 0

as the WID is a byte and not an integer, so why do this happens? I'm on latest Debian Sid, and using Linux 5.6.0-2-amd64 kernel

OnionMaster03 avatar Jul 02 '20 21:07 OnionMaster03

I haven't looked much into it but try giving the command without = xwinwrap -fs -ni -s -nf -b -un -argb -fdt -sh circle -- gifview -w WID mygif.gif -a

r00tdaemon avatar Jul 02 '20 22:07 r00tdaemon

If I pass it like that ( -w WID ) it works but only for gifview if I try to use it with mpv I must specify WID by --wid=WID and it keep returning a non integer

OnionMaster03 avatar Jul 03 '20 11:07 OnionMaster03

Again, with mpv you can pass -wid WID It's just how the cli args are parsed in xwinwrap

r00tdaemon avatar Jul 03 '20 13:07 r00tdaemon

Thx so, now it works. (mpv discourage using -wid WID with a warning but it works)

OnionMaster03 avatar Jul 03 '20 15:07 OnionMaster03