<div>A <code>XRRScreenResources</code> contains multiple <code>XRRModeInfo</code> and <code>RROutput</code> (which with <code>XRRGetOutputInfo()</code> effectively means <code>XRROutputInfo</code>).
 Therefore, a screen can have many outputs which in turn, can have many
modes. I can restrict myself to only <code>(XRROutputInfo *)->connection == RR_Connected</code> outputs, however this still leaves many possible modes. The,  rate is a property of the mode. Because of this many-to-many
relationship, how can I determine what the active rate is?</div><div>In other words:<br></div><p><br></p><pre><code>  XRRScreenResources *res = XRRGetScreenResources(display, default_root_window);
  for (int i = 0; i < res->nmode; ++i) {
    XRRModeInfo *mode_info = &res->modes[i];
    // How do you verify this is the active rate?
    double rate = (double)mode_info->dotClock / ((double)mode_info->hTotal * (double)mode_info->vTotal));
  }
</code><br></pre><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><br></div><div class="protonmail_signature_block-proton">Sent with <a href="https://protonmail.com" target="_blank" rel="noreferrer nofollow noopener">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><br></div><div class="protonmail_signature_block-proton">Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div>