diff --git a/src/backends/meta-color-device.c b/src/backends/meta-color-device.c index ab7fadb4d..681212a75 100644 --- a/src/backends/meta-color-device.c +++ b/src/backends/meta-color-device.c @@ -360,3 +360,9 @@ meta_color_device_get_id (MetaColorDevice *color_device) { return color_device->cd_device_id; } + +MetaMonitor * +meta_color_device_get_monitor (MetaColorDevice *color_device) +{ + return color_device->monitor; +} diff --git a/src/backends/meta-color-device.h b/src/backends/meta-color-device.h index e01391ce0..8cda7d103 100644 --- a/src/backends/meta-color-device.h +++ b/src/backends/meta-color-device.h @@ -21,6 +21,7 @@ #include #include "backends/meta-backend-types.h" +#include "core/util-private.h" #define META_TYPE_COLOR_DEVICE (meta_color_device_get_type ()) G_DECLARE_FINAL_TYPE (MetaColorDevice, meta_color_device, @@ -37,4 +38,7 @@ void meta_color_device_update_monitor (MetaColorDevice *color_device, const char * meta_color_device_get_id (MetaColorDevice *color_device); +META_EXPORT_TEST +MetaMonitor * meta_color_device_get_monitor (MetaColorDevice *color_device); + #endif /* META_COLOR_DEVICE_H */