This patch fixes T7274
This call should ensure that the widget that got focus is really visible on the screen, like two scrollers in each other, or a item in a toolbar in a scroller.
But what this shows is that this is broken a lot.
To me this patch is fine. @akaned should have the last say however.
The commit log for this patch needs more info, e.g., "what is the purpose of this patch" "why is this patch needed". Tickets may not always be able to be accessed, so providing only a ticket reference will not be as valuable in the future.