From b3ebffa07d211c408e178574b990b2398b2c26ae Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 9 Dec 2017 08:33:21 -0500 Subject: [PATCH] Switch the order for cursor lookup When looking for the cursor to apply, start from the innermost widget and go up. This is the right behavior for cases like entry icons. The top-down order we were using so far is the right behavior for cases like global wait cursors. Since we have entry icons in gtk, but not global wait cursors, lets pick the other order for now. --- gtk/gtkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index eb00059de6..9396dfc938 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -11358,7 +11358,7 @@ update_cursor (GtkWindow *toplevel, } } - for (l = widgets; l; l = l->next) + for (l = g_list_last (widgets); l; l = l->prev) { cursor = gtk_widget_get_cursor (l->data); if (cursor)