aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-21 11:05:04 -0500
committerDavid Robillard <d@drobilla.net>2025-01-21 11:05:13 -0500
commit19b57eae068efd0c56469a1feb4401bc9aa338b8 (patch)
tree5c9f12d4ecd4f1326d1c2234b788945a78e559c6 /src/x11.c
parent98246e21ebf86db15cc848644bcd3e2827c5a2ca (diff)
downloadpugl-19b57eae068efd0c56469a1feb4401bc9aa338b8.tar.gz
pugl-19b57eae068efd0c56469a1feb4401bc9aa338b8.tar.bz2
pugl-19b57eae068efd0c56469a1feb4401bc9aa338b8.zip
Add missing const qualifier
Diffstat (limited to 'src/x11.c')
-rw-r--r--src/x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x11.c b/src/x11.c
index 1d3b7f0..1756763 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -647,7 +647,7 @@ puglRealize(PuglView* const view)
if (XRRQueryExtension(display, &ignored, &ignored)) {
// Set refresh rate hint to the real refresh rate
XRRScreenConfiguration* conf = XRRGetScreenInfo(display, parent);
- short current_rate = XRRConfigCurrentRate(conf);
+ const short current_rate = XRRConfigCurrentRate(conf);
view->hints[PUGL_REFRESH_RATE] = current_rate;
XRRFreeScreenConfigInfo(conf);