gtkwidget: Visually update cursors inside widget when changing cursor

This commit is contained in:
Carlos Garnacho 2017-04-04 17:09:41 +02:00
parent fa04bf6238
commit a595f92b7b

View File

@ -15668,7 +15668,14 @@ void
gtk_widget_set_cursor (GtkWidget *widget,
GdkCursor *cursor)
{
g_set_object (&widget->priv->cursor, cursor);
GtkWidget *toplevel;
if (!g_set_object (&widget->priv->cursor, cursor))
return;
toplevel = gtk_widget_get_toplevel (widget);
if (GTK_IS_WINDOW (toplevel))
gtk_window_maybe_update_cursor (GTK_WINDOW (toplevel), widget, NULL);
}
GdkCursor *