harden focus cycling against client focussing
harden focus cycling against client focussing

Clients which implement a client-side modality might cause
livelocks by reverting the focus to the transient (after the
WM tried to put it on the leader as the transient's modality
is unknown)

So while cycling we revert the focus whenever it moves somewhere
where we don't expect it.
When done, we also focus the window that should have the focus anyway
to allow the client to redistribute the focus (as we prevented it
during cycling)

Hall of Shame: Softmaker Freeoffice uses (only) client side modality.

Arkq/fluxbox,Arkq/fluxbox,Arkq/fluxbox,luebking/fluxbox,naimdjon/fluxbox,naimdjon/fluxbox,luebking/fluxbox,naimdjon/fluxbox,Arkq/fluxbox,naimdjon/fluxbox,luebking/fluxbox,luebking/fluxbox,Arkq/fluxbox,naimdjon/fluxbox,luebking/fluxbox