summaryrefslogtreecommitdiff
path: root/src/gs-grab-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-grab-x11.c')
-rw-r--r--src/gs-grab-x11.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gs-grab-x11.c b/src/gs-grab-x11.c
index 7367034..421398b 100644
--- a/src/gs-grab-x11.c
+++ b/src/gs-grab-x11.c
@@ -232,7 +232,11 @@ gs_grab_get_mouse (GSGrab *grab,
grab->priv->mouse_hide_cursor = hide_cursor;
}
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
return status;
}