Add some client side book keeping of window ordering and focus in order to not send unnecessary updates. This is done to avoid side effects for commands that would seem to be no-ops.