Commit ca06216f authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Simplify _gdk_display_get_last_pointer_grab using g_list_last

parent 52ca2f29
......@@ -749,15 +749,12 @@ _gdk_display_get_last_pointer_grab (GdkDisplay *display)
{
GList *l;
l = display->pointer_grabs;
l = g_list_last (display->pointer_grabs);
if (l == NULL)
return NULL;
while (l->next != NULL)
l = l->next;
return (GdkPointerGrabInfo *)l->data;
else
return (GdkPointerGrabInfo *)l->data;
}
......
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