summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-rr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmate-desktop/mate-rr.c b/libmate-desktop/mate-rr.c
index 1dd0a75..be047fe 100644
--- a/libmate-desktop/mate-rr.c
+++ b/libmate-desktop/mate-rr.c
@@ -958,6 +958,7 @@ mate_rr_screen_get_timestamps (MateRRScreen *screen,
static gboolean
force_timestamp_update (MateRRScreen *screen)
{
+#ifdef HAVE_RANDR
MateRRScreenPrivate *priv = screen->priv;
MateRRCrtc *crtc;
XRRCrtcInfo *current_info;
@@ -1000,6 +1001,9 @@ force_timestamp_update (MateRRScreen *screen)
timestamp_updated = TRUE;
out:
return timestamp_updated;
+#else
+ return FALSE;
+#endif
}
/**