use #include <libmate-desktop/mate-rr.h> instead #include <libmateui/mate-rr.h>