Let's call the parameter bounce $q$ and $h_k$ the height after $k$-th bounce. Since $h_{k + 1} = q h_k$, it follows that
$$h_k = q^kh_0 = q^k h.$$
Let $w$ be the height of the window. If $w \geq h$, the answer is $-1$ (I do not know, why $0$ is inappropriate). Otherwise,
the mother sees the ball at least once: when it passes the window after being dropped from the height $h$. After that, it sees it twice for each $k$, for which we have
$$h_k > w.$$
(Draw a sketch!)
Thus, we are looking for the maximal $k$ for which
$$ q^k h > w \Leftrightarrow q^k > w/h$$
still holds.
Can you take it from here?