the click inside Geany's editor must be the one by which Geany gains focus (i.e. do not first click in Geany's title bar to get it in the foreground and then inside Scintilla).
Ok, thats the information that was missing, I normally have "focus follows mouse" which made it impossible to click in Geany before it had the focus. Can reproduce.