diff options
author | infirit <[email protected]> | 2014-11-08 01:43:25 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-28 08:51:51 +0100 |
commit | f1a37e312cb30c23a2402a48a80470acee750011 (patch) | |
tree | e560dc0dba3e4dc4949d9fd81a1b28618e3b990e /libmate-desktop/mate-rr.c | |
parent | 741bece3260fb643e75f1131c3f60e158d672ed3 (diff) | |
download | mate-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
Diffstat (limited to 'libmate-desktop/mate-rr.c')
-rw-r--r-- | libmate-desktop/mate-rr.c | 4 |
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 } /** |