summaryrefslogtreecommitdiff
path: root/mate-screenshot/src
diff options
context:
space:
mode:
Diffstat (limited to 'mate-screenshot/src')
-rw-r--r--mate-screenshot/src/screenshot-utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-screenshot/src/screenshot-utils.c b/mate-screenshot/src/screenshot-utils.c
index 55239a5c..8001b502 100644
--- a/mate-screenshot/src/screenshot-utils.c
+++ b/mate-screenshot/src/screenshot-utils.c
@@ -603,7 +603,11 @@ make_region_with_monitors (GdkScreen *screen)
{
GdkRectangle rect;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gdk_monitor_get_geometry (gdk_display_get_monitor (display, i), &rect);
+#else
gdk_screen_get_monitor_geometry (screen, i, &rect);
+#endif
cairo_region_union_rectangle (region, &rect);
}