in reply to Re^4: scripting i3 with Perl
in thread scripting i3 with Perl

So, the i3 API tells you that all is well. This sounds more like a problem with i3 to me. Maybe consider delaying the switching a bit. Set a timer (AnyEvent->timer(after => 3, sub {...}) and trigger the desktop switch from that timed callback instead of triggering it directly.

Replies are listed 'Best First'.
Re^6: scripting i3 with Perl
by morgon (Priest) on Feb 02, 2019 at 13:43 UTC
    Thanks for your input but if I have to resort to experimentation even for the most trivial cases, this is not for me.

    I'll do my i3 scripting in python then.