emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38163: closed (GDK does not return the monitor's refresh rate)


From: GNU bug Tracking System
Subject: bug#38163: closed (GDK does not return the monitor's refresh rate)
Date: Wed, 27 May 2020 00:11:02 +0000

Your message dated Wed, 27 May 2020 01:10:35 +0100
with message-id <address@hidden>
and subject line Re: bug#38163: GDK does not return the monitor's refresh rate
has caused the debbugs.gnu.org bug report #38163,
regarding GDK does not return the monitor's refresh rate
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
38163: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38163
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: GDK does not return the monitor's refresh rate Date: Sun, 10 Nov 2019 16:44:23 +0000 User-agent: Evolution 3.30.5
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-refresh-rate

I was developing/testing on Parabola GNU/Linux-libre before and it was
giving me a correct rate of 60 Hz.

Other distros I have tested this API before on:
Various ubuntu versions, debian 9 and 10, manjaro (arch), various
fedora versions, plus a few others that users tested on.

I suspect GDK is trying to access something that guix doesn't make
available to it, but I don't have much knowledge of the internals of
GDK or Guix to debug this myself.

I will post a package from my guix channel that you can test this on
soon.

To call the API, one basically calls the following, after including
<gtk/gtk.h>, so any GTK program will do.
```
GdkDisplay * display = gdk_display_get_default ();
GdkMonitor * monitor = gdk_display_get_primary_monitor (display);
int refresh_rate = gdk_monitor_get_refresh_rate (monitor);
```

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message --- Subject: Re: bug#38163: GDK does not return the monitor's refresh rate Date: Wed, 27 May 2020 01:10:35 +0100 User-agent: Evolution 3.34.2
This was fixed a long time ago.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]