Closed bendem closed 8 years ago
Thanks for reporting! Can you please do a make clean debug
and paste the output when running ./i3-easyfocus
again?
Oh good point! The ids should be unsigned; I was just following the docs from i3ipc-glib where it is signed.
Could you try with the branch issue6
whether it works?
Same result, different ipc error message: https://gist.github.com/bendem/3a97e6991744d75ea21cdc176b44e290#file-gistfile2-txt
The con_id seems to be already overflowing when it is handled by i3ipc-glib
as a gint
, which is 4 bytes on my system. In i3
, the con_id is actually the address of the corresponding con struct and is handled as a long
when being printed or read - with a size of 8 bytes here.
This happens when I move a nested window out of its container, I cannot focus it anymore.
i3 version 4.15 (2018-03-10)
i3easyfocus-20180622 revision i33631d5af612d58c3d027f59c86b185590bd78ae1
@Radivarig Which version of i3ipc-glib are you using? This issue was fixed in i3ipc-glib with this commit https://github.com/acrisci/i3ipc-glib/commit/a7a29cf08221a180d747926b1715de1597cff768. Sadly, the last released version 0.6.0 does not include this fix :/
For a more detailed log of your problem, you can do:
make clean debug
./i3-easyfocus
It should give a more detailed output about what happens.
@cornerman ah.. you are correct. My version is 0.6.0. Thanks
Just cloned the repo, and built this tool. Running
./i3-easyfocus
printscannot focus window
and does nothing.I'm running 1f3274c with https://github.com/acrisci/i3ipc-glib/commit/8261412.