User Activity

I am using an STM32L552ZE (it is in fact the nucleo version). After carefully reading the manual and looking at some example code from the STM32 Cube IDE, I came to the conclusion that this code is what I need to enter stop 2 mode with Wait For Event...
According to the documentation, widgets are only redrawn once in the 'render' phase:https://support.touchgfx.com/docs/basic-concepts/rendering#renderHowever, when I call `invalidate` on a widget from a function that is not the `tick`, it is immediate...