Commit 0840f13c authored by Timm Bäder's avatar Timm Bäder 🤔 Committed by Matthias Clasen

gtklabel: Set the correct initial cursor

Use GDK_XTERM only if the label is really selectable.

https://bugzilla.gnome.org/show_bug.cgi?id=732970
parent 3780fc78
......@@ -5198,7 +5198,7 @@ gtk_label_create_window (GtkLabel *label)
GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK;
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
if (gtk_widget_is_sensitive (widget))
if (gtk_widget_is_sensitive (widget) && priv->select_info && priv->select_info->selectable)
{
attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
GDK_XTERM);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment