summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-08 01:43:25 +0100
committerinfirit <[email protected]>2014-11-28 08:51:51 +0100
commitf1a37e312cb30c23a2402a48a80470acee750011 (patch)
treee560dc0dba3e4dc4949d9fd81a1b28618e3b990e
parent741bece3260fb643e75f1131c3f60e158d672ed3 (diff)
downloadmate-desktop-f1a37e312cb30c23a2402a48a80470acee750011.tar.bz2
mate-desktop-f1a37e312cb30c23a2402a48a80470acee750011.tar.xz
Don't build some RANDR code if RANDR is not available
Based on gnome-desktop commit: f89d8a582abbb79898a93d26a8c0f52f74b20bd2 From: Federico Mena Quintero <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=643940
-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
}
/**