From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandros Theodotou Subject: bug#38163: GDK does not return the monitor's refresh rate Date: Mon, 11 Nov 2019 21:31:23 +0000 Message-ID: <39ba9bcf7fc343bf9c7f173149f3009fe5df69b7.camel@zrythm.org> References: <87v9rqm8y4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-5dtwNfJPPysFazVV80ZV" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58029) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUHI2-0007eD-Uy for bug-guix@gnu.org; Mon, 11 Nov 2019 16:32:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUHI2-0004DY-0X for bug-guix@gnu.org; Mon, 11 Nov 2019 16:32:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iUHI1-0004DR-TK for bug-guix@gnu.org; Mon, 11 Nov 2019 16:32:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iUHI1-0005hy-Lq for bug-guix@gnu.org; Mon, 11 Nov 2019 16:32:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87v9rqm8y4.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 38163@debbugs.gnu.org --=-5dtwNfJPPysFazVV80ZV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ludo, > Looking at GTK+, the =E2=80=98init_randr*=E2=80=99 functions in =E2=80=98= gdkscreen-x11.c=E2=80=99 > appear > to be those responsible for setting the =E2=80=98refresh_rate=E2=80=99 fi= eld. >=20 > However, AFAICS, our =E2=80=98gtk+=E2=80=99 package does not depend on = =E2=80=98libxrandr=E2=80=99, > and > thus that functionality is simply compiled out (the function returns > 0 > unconditionally). >=20 > Could you try adding that dependency on =E2=80=98libxrandr=E2=80=99 in = =E2=80=98gtk+=E2=80=99? Just tried that and it worked! It's returning the correct refresh rate now: ** Message: 21:20:40.548: refresh rate returned by GDK: 60.0 > We won=E2=80=99t make this change in =E2=80=98master=E2=80=99 because it = entails too many > rebuilds, but it could go on the next branch for massive rebuilds.=20 Makes sense. I will be using my local gtk+ version for a while then until this change goes live. Thanks for taking a look at this. Alex --=-5dtwNfJPPysFazVV80ZV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEESBMjhK0999huJUuDAi6uQjE9cPMFAl3J0ysACgkQAi6uQjE9 cPMmaQf/U34lnB1vNrDN56KAoPEYYpgoDyOrmIM/TGpthjhkBeTYa5YlHvhJBCY3 6UEQPBeRYtX6YIUQ1IbgnUHosIUTSU4OJwjEJhL6t2+0IgeIwmOE1w0cuUr5Lhm8 w4HnaJFMszwlHz4QYuP3MecujgusCFuFQ8cWwK4DJZeqFU/KRoZLnCxl2VwV0xfx eLEsbpBGuXET4kS5kcukYB5Yxnis3oRnDNBOtuq2m9n/C6Wi0/9N74YeY0yVWVib kKbcq1rHO/f7UrPTyOvvnb6rjUigEE5gnt61V8Je8GzlEEDZt8KCzUCa1UUT99Vx HM0E5/Ufxb+mFB9dp0K0enzUjqwajg== =ljRv -----END PGP SIGNATURE----- --=-5dtwNfJPPysFazVV80ZV--