summaryrefslogtreecommitdiff
path: root/src/gs-window-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-window-x11.c')
-rw-r--r--src/gs-window-x11.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index c3d7495..15fb677 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -159,11 +159,20 @@ static void
set_invisible_cursor (GdkWindow *window,
gboolean invisible)
{
+#if GTK_CHECK_VERSION (3, 16, 0)
+ GdkDisplay *display;
+#endif
GdkCursor *cursor = NULL;
if (invisible)
{
+
+#if GTK_CHECK_VERSION (3, 16, 0)
+ display = gtk_widget_get_display (GTK_WIDGET (window));
+ cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR);
+#else
cursor = gdk_cursor_new (GDK_BLANK_CURSOR);
+#endif
}
gdk_window_set_cursor (window, cursor);