internal static void SetFocusState(GlFwForm f, bool focus) { if (focus) { f.OnFocus(); } else { f.OnLostFocus(); } }