color-device: Add getter for the associated monitor

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2164>
This commit is contained in:
Jonas Ådahl
2021-11-29 20:02:34 +01:00
parent 6403cfe170
commit 41ebf3b1bf
2 changed files with 10 additions and 0 deletions

View File

@ -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;
}