So yes, there is something else going on, I can reproduce this bug in OpenBox on Arch and I understand the problem, but don't have a good fix yet. I'll try again tomorrow. Ideally I'd like ...Show alone to be sufficient.
There seems to be a simple workaround at least: waiting after hide until the keyboard is completely hidden seems to help. Something like ...Hide; sleep 0.3; ...Show.
So yes, there is something else going on, I can reproduce this bug in OpenBox on Arch and I understand the problem, but don't have a good fix yet. I'll try again tomorrow. Ideally I'd like ...Show alone to be sufficient.
There seems to be a simple workaround at least: waiting after hide until the keyboard is completely hidden seems to help. Something like ...Hide; sleep 0.3; ...Show.