[...] maybe find a simple GTK4 app and see if its the same.
Even if a simple GTK4 app would exist and even if in the simple GTK4 app the issue would not exist any more, it does not mean that the simple GTK4 app is using the GTK4 default behavior. As with Geany, there may be a non-standard behaviour implemented.