From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#38163: GDK does not return the monitor's refresh rate Date: Mon, 11 Nov 2019 21:53:07 +0100 Message-ID: <87v9rqm8y4.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52516) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUGhH-0006dT-2f for bug-guix@gnu.org; Mon, 11 Nov 2019 15:54:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUGhG-0008DR-31 for bug-guix@gnu.org; Mon, 11 Nov 2019 15:54:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47229) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iUGhF-0008DL-Vm for bug-guix@gnu.org; Mon, 11 Nov 2019 15:54:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iUGhF-0002ls-Sy for bug-guix@gnu.org; Mon, 11 Nov 2019 15:54:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Alexandros Theodotou's message of "Sun, 10 Nov 2019 16:44:23 +0000") 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: Alexandros Theodotou Cc: 38163@debbugs.gnu.org Hi Alexandros, Alexandros Theodotou skribis: > I have been developing and testing my GTK app (Zrythm) on many distros > and Guix is the only case that the monitor's refresh rate is returned > as 0. > > The API I am using is this: > https://developer.gnome.org/gdk3/stable/GdkMonitor.html#gdk-monitor-get-r= efresh-rate Looking at GTK+, the =E2=80=98init_randr*=E2=80=99 functions in =E2=80=98gd= kscreen-x11.c=E2=80=99 appear to be those responsible for setting the =E2=80=98refresh_rate=E2=80=99 fiel= d. 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). Could you try adding that dependency on =E2=80=98libxrandr=E2=80=99 in =E2= =80=98gtk+=E2=80=99? We won=E2=80=99t make this change in =E2=80=98master=E2=80=99 because it en= tails too many rebuilds, but it could go on the next branch for massive rebuilds. Thanks for your report, Ludo=E2=80=99.