pad: store the received result from _foreach

If the foreach function changes the received state of the sticky event, make
sure we remember that.
This commit is contained in:
Wim Taymans 2012-03-09 11:52:29 +01:00
parent a80581831e
commit 0054e6da9e

View file

@ -493,6 +493,9 @@ restart:
goto restart;
}
/* store the received state */
ev->received = ev_ret.received;
/* if the event changed, we need to do something */
if (G_UNLIKELY (ev->event != ev_ret.event)) {
if (G_UNLIKELY (ev_ret.event == NULL)) {