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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index 6dd6d59..d4bb564 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -168,7 +168,7 @@ set_invisible_cursor (GdkWindow *window,
{
#if GTK_CHECK_VERSION (3, 16, 0)
- display = gtk_widget_get_display (GTK_WIDGET (window));
+ display = gdk_window_get_display (window);
cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR);
#else
cursor = gdk_cursor_new (GDK_BLANK_CURSOR);