Answer
Please see the work below.
Work Step by Step
We know that the normal force by the wall on the gecko is zero. The gecko's static friction should be large enough to exert an upward force equal to its weight to stay up on the windowpane. This requires an infinite coefficient of static friction. This is clearly not possible, so the physics involved must be more complex than our simple assumptions.