Sometimes when a window is bring to front by the system, I click a button or other widget accidentally when my intent is to click in the window which was covered by the new window. For example suppose a critical notification pops up with some action buttons. At the same time I start clicking the area where a button will be drawn. The result is that I click the button by mistake. If the button said "dismiss" probably the notification is dismissed without confirmation and lost for ever! It seems unlikly but I come across with this kind of situations some times and are really annoying.
The same applies to dynamic layouts which update by themselves.
I wonder why this is not even discussed when there is a simple and obvious solution:
A widget which is just drawn (not redrawn) should not receive user input for some milliseconds. This is so because user need some time to recognize the widget before click it so if it is clicked just after drawn then it has to be by mistake (or the user has drank too much cofee)
I would like to receive some feedback on this thought.