summaryrefslogtreecommitdiff
path: root/gtk/gtktipsquery.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktipsquery.c')
-rw-r--r--gtk/gtktipsquery.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtktipsquery.c b/gtk/gtktipsquery.c
index c2ee0de0b0..faab09c07b 100644
--- a/gtk/gtktipsquery.c
+++ b/gtk/gtktipsquery.c
@@ -342,7 +342,8 @@ gtk_tips_query_real_start_query (GtkTipsQuery *tips_query)
g_return_if_fail (GTK_IS_TIPS_QUERY (tips_query));
- tips_query->query_cursor = gdk_cursor_new (GDK_QUESTION_ARROW);
+ tips_query->query_cursor = gdk_cursor_new_for_screen (gtk_widget_get_screen (GTK_WIDGET (tips_query)),
+ GDK_QUESTION_ARROW);
failure = gdk_pointer_grab (GTK_WIDGET (tips_query)->window,
TRUE,
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
@@ -366,7 +367,8 @@ gtk_tips_query_real_stop_query (GtkTipsQuery *tips_query)
gtk_grab_remove (GTK_WIDGET (tips_query));
if (tips_query->query_cursor)
{
- gdk_pointer_ungrab (GDK_CURRENT_TIME);
+ gdk_display_pointer_ungrab (gtk_widget_get_display (GTK_WIDGET (tips_query)),
+ GDK_CURRENT_TIME);
gdk_cursor_destroy (tips_query->query_cursor);
tips_query->query_cursor = NULL;
}